como fazer elementos que scroll diferente
CSS
$(window).scroll(function(e){
parallax();
});
function parallax(){
var scrolled = $(window).scrollTop();
$('.bg').css('top',-(scrolled*0.2)+'px');
}.bg {
background: url('http://i.imgur.com/USFbNpC.jpg') repeat;
position: fixed;
width: 100%;
height: 300%;
top:0;
left:0;
z-index: -1;
}
section {
color: #fff;
font-family: arial;
width: 500px;
margin: auto;
line-height: 20px;
font-size: 16px;
}
Also in CSS:
- Title
- Use Recursion to Create a Range of Numbers
- Category
- CSS
- Title
- how to css after elements for background overlays
- Category
- CSS
- Title
- css animations transform
- Category
- CSS
- Title
- css window height
- Category
- CSS
- Title
- html list items horizontally with flexbox
- Category
- CSS
- Title
- html css make p div into two lines
- Category
- CSS
- Title
- chat bot with a floating button html and css
- Category
- CSS
- Title
- aligner et centrer element css html
- Category
- CSS
- Title
- what is css
- Category
- CSS
- Title
- loading screen svg and css animation
- Category
- CSS
- Title
- button hover css
- Category
- CSS
- Title
- how to align an image left in css
- Category
- CSS
- Title
- ombre color div
- Category
- CSS
- Title
- css animation examples
- Category
- CSS
- Title
- css transparent background color
- Category
- CSS
- Title
- enter in css
- Category
- CSS
- Title
- css grid align
- Category
- CSS
- Title
- change select arrow css
- Category
- CSS
- Title
- what is a css selector
- Category
- CSS
- Title
- make a underline with ::before css
- Category
- CSS
- Title
- how to change highlight color on website
- Category
- CSS
- Title
- how to push text to the right css
- Category
- CSS
- Title
- rel css
- Category
- CSS
- Title
- como fazer elementos que scroll diferente
- Category
- CSS
- Title
- jQuery remove a CSS style
- Category
- CSS
- Title
- how to create a hover effect in css
- Category
- CSS
- Title
- css keyframes
- Category
- CSS
- Title
- how to style body using css
- Category
- CSS
- Title
- css center vertically
- Category
- CSS
- Title
- image rotate css
- Category
- CSS
- Title
- css max height
- Category
- CSS
- Title
- make td match display flex
- Category
- CSS
- Title
- referance html id css
- Category
- CSS
- Title
- css background image fit
- Category
- CSS
- Title
- css hover
- Category
- CSS
- Title
- html css how to arrange images of different sizes
- Category
- CSS
- Title
- how to add background image in a container css
- Category
- CSS
- Title
- css grid center elements inside div
- Category
- CSS
- Title
- italic in css
- Category
- CSS
- Title
- radial gradient css
- Category
- CSS
- Title
- font face html
- Category
- CSS
- Title
- How to prevent anchor links from scrolling behind a sticky header with one line of CSS
- Category
- CSS
- Title
- because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
- Category
- CSS
- Title
- using divs instead of table
- Category
- CSS
- Title
- box shadow flutter
- Category
- CSS
- Title
- css how to style a div
- Category
- CSS
- Title
- css border shorthand
- Category
- CSS
- Title
- css grid example
- Category
- CSS
- Title
- jquery css add important
- Category
- CSS
- Title
- css rotate animation
- Category
- CSS
- Title
- open sublime text 3 from terminal mac
- Category
- CSS
- Title
- css nth child
- Category
- CSS
- Title
- css border botttom
- Category
- CSS
- Title
- css reset margin padding
- Category
- CSS
- Title
- animate font weight css
- Category
- CSS
- Title
- how to get element details using cssselector using beautifulsoup
- Category
- CSS
- Title
- how to link to a css file in html
- Category
- CSS
- Title
- html static background
- Category
- CSS
- Title
- Wrap the last word of a paragraph in span tags using jQuery
- Category
- CSS
- Title
- css border style
- Category
- CSS
- Title
- what is rem in css
- Category
- CSS
- Title
- xcrun: error: SDK "iphoneos" cannot be located
- Category
- CSS
- Title
- scss mixin skip argument use default
- Category
- CSS
- Title
- changong text color css
- Category
- CSS
- Title
- css disabled div
- Category
- CSS
- Title
- how to overwrite im css
- Category
- CSS
- Title
- css grid tutorial
- Category
- CSS
- Title
- font. to be thinner css
- Category
- CSS
- Title
- css onclick change color
- Category
- CSS
- Title
- remove background when autofill input css
- Category
- CSS
- Title
- list text wont center properly css
- Category
- CSS
- Title
- focus um elemento altera outro css
- Category
- CSS
- Title
- jquey check css style
- Category
- CSS
- Title
- change font awesome icon color
- Category
- CSS
- Title
- cdnjs font awesome
- Category
- CSS
- Title
- how to link fonts css
- Category
- CSS
- Title
- javascript add inline style css var
- Category
- CSS
- Title
- background color gradient css
- Category
- CSS
- Title
- background image in css
- Category
- CSS
- Title
- text unselectable css
- Category
- CSS
- Title
- inline style css syntax
- Category
- CSS
- Title
- how do i link my css to my html
- Category
- CSS
- Title
- image size css
- Category
- CSS
- Title
- min height css
- Category
- CSS
- Title
- E/ViewRootImpl: sendUserActionEvent() mView returned.
- Category
- CSS
- Title
- css span to right of div
- Category
- CSS
- Title
- how long ago was 1993 years
- Category
- CSS
- Title
- css paragraph ellipsis
- Category
- CSS
- Title
- hide horizontal scrollbar css
- Category
- CSS
- Title
- force to load https
- Category
- CSS
- Title
- ::-ms-clear
- Category
- CSS
- Title
- git stop merge
- Category
- CSS
- Title
- press on button outline shoul not appear csss
- Category
- CSS
- Title
- transparent button css
- Category
- CSS
- Title
- media query min and max
- Category
- CSS
- Title
- difference between :after and ::after
- Category
- CSS
- Title
- make an image size down to accommodate screen size
- Category
- CSS
- Title
- css size
- Category
- CSS
- Title
- css grid mdn
- Category
- CSS
- Title
- generate random grid in css
- Category
- CSS