jquery - Fade in and out 'background-image' -
How can you change the background image so images are constantly floppy (loop) and fade. I have tried to make a divas and add many images, but it does not seem that I need to have the background size: the cover and the position of the center I know that such questions have been asked before but I It may not seem to work.
#landing {status: relative; Margin-top: 0 pixels; Background Image: URL ('/ images / blue.jpg'); Background repeat: do not repeat; Background size: Cover; Background position: center; Background color: black; }
Thanks!
Changes in fact do not apply to background images so you need to do additional work. There are many jQuery plug-ins for slideshows
You can actually do this with Pure CSS , and No Additional Elements Browser's Based on requirements It will work with only two images.
#landing {status: relative; Border: 1 px solid # 666; Height: 10 AM; } #landing :: first, #landing :: after {content: "";; Status: Completed; Z-index: -1; Left: 0; Correct: 0; Bottom: 0; Top: 0; Background size:; } #Landing :: First {background: #fff url (http://www.openclipart.org/people/Map2Map/Waveski_Rear.svg) No-double center; } #landing :: after {background: #fff url (http://www.openclipart.org/people/Map2Map/Waveski_Along_Wave.svg) no-double center; Animation: Feed Variants 2s Infinite Linear Optional; } @ Keyframe fade with della {0% {opacity: 1;} 25% {opacity: 1;} 75% {opacity: 0;} 100% {opacity: 0;}}
Apart from this, another approach helps if you need many images and it does not need to be dynamic.
Comments
Post a Comment