Yasmin1304 (Talk | contribs) |
Yasmin1304 (Talk | contribs) |
||
Line 7: | Line 7: | ||
} | } | ||
− | + | </style> | |
− | + | </head> | |
− | background-image: url('https://static.igem.org/mediawiki/2017/a/ac/MG_8285-XL.jpg'); | + | <body> |
+ | |||
+ | <div style= " background-image: url('https://static.igem.org/mediawiki/2017/a/ac/MG_8285-XL.jpg'); | ||
− | + | ||
height: 100%; | height: 100%; | ||
− | + | ||
− | + | background-attachment: fixed; | |
background-position: center; | background-position: center; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
− | background-size: cover; | + | background-size: cover; "></div> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<div style="height:1000px;background-color:red;font-size:36px"> | <div style="height:1000px;background-color:red;font-size:36px"> |
Revision as of 18:18, 13 October 2017
Scroll Up and Down this page to see the parallax scrolling effect.
This div is just here to enable scrolling.
Tip: Try to remove the background-attachment property to remove the scrolling effect.