Need help with Fullscreen slideshow using CSS3
TammyGPhoto
Registered Users Posts: 153 Major grins
I have been working on my fullscreen slideshow using CSS3 as discussed in this thread and this website..
my problem is this..i have it working using the code to zoom in the photos ...but for the life of me am not able to get it to work using the non-zoom code here ...it doesn't play at all when i do this...
here is the code i have tried with no success... any idea why this isn't working? and sorry but my site is not unveiled at this time..
:scratch
thx for any help you can provide!!
my problem is this..i have it working using the code to zoom in the photos ...but for the life of me am not able to get it to work using the non-zoom code here ...it doesn't play at all when i do this...
here is the code i have tried with no success... any idea why this isn't working? and sorry but my site is not unveiled at this time..
:scratch
thx for any help you can provide!!
/*----- Code to display fullscreen background for all browsers ie 9 and less -----*/ .sm-ie-5, .sm-ie-6, .sm-ie-7, .sm-ie-8, .sm-ie-9 { background: url(http://www.tammygphotography.com/Portfolio/Nature-Landscapes/i-25QGvPZ/1/XL/PA130412-XL.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } /*----- Code to display slideshow for all other browsers -----*/ .cb-slideshow, .cb-slideshow:after { position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; z-index: -99999; } .cb-slideshow:after { content: ''; background: transparent url(../images/pattern.png) repeat top left; } .cb-slideshow li span { width: 100%; height: 100%; position: absolute; top: 0; left: 0; color: transparent; background-size: cover; background-position: 50% 50%; background-repeat: none; opacity: 0; z-index: 0; -webkit-backface-visibility: hidden; -webkit-animation: imageAnimation 36s linear infinite 0s; -moz-animation: imageAnimation 36s linear infinite 0s; -o-animation: imageAnimation 36s linear infinite 0s; -ms-animation: imageAnimation 36s linear infinite 0s; animation: imageAnimation 36s linear infinite 0s; } .cb-slideshow li div { z-index: 1000; position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center; opacity: 0; color: #fff; -webkit-animation: titleAnimation 36s linear infinite 0s; -moz-animation: titleAnimation 36s linear infinite 0s; -o-animation: titleAnimation 36s linear infinite 0s; -ms-animation: titleAnimation 36s linear infinite 0s; animation: titleAnimation 36s linear infinite 0s; } .cb-slideshow li div h3 { font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif; font-size: 240px; padding: 0; line-height: 200px; } .cb-slideshow li:nth-child(1) span { background-image: url(http://www.tammygphotography.com/Portfolio/Nature-Landscapes/i-25QGvPZ/1/XL/PA130412-XL.jpg) } .cb-slideshow li:nth-child(2) span { background-image: url(http://www.tammygphotography.com/Portfolio/Planes/i-HWh2BCr/1/XL/P6307799-XL.jpg); -webkit-animation-delay: 6s; -moz-animation-delay: 6s; -o-animation-delay: 6s; -ms-animation-delay: 6s; animation-delay: 6s; } .cb-slideshow li:nth-child(3) span { background-image: url(http://www.tammygphotography.com/Portfolio/Flowers-Macro/i-mSRvvnT/1/XL/PA210711-XL.jpg); -webkit-animation-delay: 12s; -moz-animation-delay: 12s; -o-animation-delay: 12s; -ms-animation-delay: 12s; animation-delay: 12s; } .cb-slideshow li:nth-child(4) span { background-image: url(http://www.tammygphotography.com/Portfolio/Liquid-Art/i-LMkrbZn/3/XL/P2081340-XL.jpg); -webkit-animation-delay: 18s; -moz-animation-delay: 18s; -o-animation-delay: 18s; -ms-animation-delay: 18s; animation-delay: 18s; } .cb-slideshow li:nth-child(5) span { background-image: url(http://www.tammygphotography.com/Portfolio/Nautical/i-PcNfKJb/1/XL/P6247032-XL.jpg); -webkit-animation-delay: 24s; -moz-animation-delay: 24s; -o-animation-delay: 24s; -ms-animation-delay: 24s; animation-delay: 24s; } .cb-slideshow li:nth-child(6) span { background-image: url(http://www.tammygphotography.com/Portfolio/Nature-Landscapes/i-M86WKrG/1/XL/PA050061-XL.jpg); -webkit-animation-delay: 30s; -moz-animation-delay: 30s; -o-animation-delay: 30s; -ms-animation-delay: 30s; animation-delay: 30s; } .cb-slideshow li:nth-child(2) div { -webkit-animation-delay: 6s; -moz-animation-delay: 6s; -o-animation-delay: 6s; -ms-animation-delay: 6s; animation-delay: 6s; } .cb-slideshow li:nth-child(3) div { -webkit-animation-delay: 12s; -moz-animation-delay: 12s; -o-animation-delay: 12s; -ms-animation-delay: 12s; animation-delay: 12s; } .cb-slideshow li:nth-child(4) div { -webkit-animation-delay: 18s; -moz-animation-delay: 18s; -o-animation-delay: 18s; -ms-animation-delay: 18s; animation-delay: 18s; } .cb-slideshow li:nth-child(5) div { -webkit-animation-delay: 24s; -moz-animation-delay: 24s; -o-animation-delay: 24s; -ms-animation-delay: 24s; animation-delay: 24s; } .cb-slideshow li:nth-child(6) div { -webkit-animation-delay: 30s; -moz-animation-delay: 30s; -o-animation-delay: 30s; -ms-animation-delay: 30s; animation-delay: 30s; } /* Animation for the slideshow images */ @-webkit-keyframes imageAnimation { 0% { opacity: 0; -webkit-animation-timing-function: ease-in; } 8% { opacity: 1; -webkit-animation-timing-function: ease-out; } 17% { opacity: 1 } 25% { opacity: 0 } 100% { opacity: 0 } } @-moz-keyframes imageAnimation { 0% { opacity: 0; -moz-animation-timing-function: ease-in; } 8% { opacity: 1; -moz-animation-timing-function: ease-out; } 17% { opacity: 1 } 25% { opacity: 0 } 100% { opacity: 0 } } @-o-keyframes imageAnimation { 0% { opacity: 0; -o-animation-timing-function: ease-in; } 8% { opacity: 1; -o-animation-timing-function: ease-out; } 17% { opacity: 1 } 25% { opacity: 0 } 100% { opacity: 0 } } @-ms-keyframes imageAnimation { 0% { opacity: 0; -ms-animation-timing-function: ease-in; } 8% { opacity: 1; -ms-animation-timing-function: ease-out; } 17% { opacity: 1 } 25% { opacity: 0 } 100% { opacity: 0 } } @keyframes imageAnimation { 0% { opacity: 0; -ms-animation-timing-function: ease-in; } 8% { opacity: 1; -ms-animation-timing-function: ease-out; } 17% { opacity: 1 } 25% { opacity: 0 } 100% { opacity: 0 } } /* Animation for the title */ @-webkit-keyframes titleAnimation { 0% { opacity: 0 } 8% { opacity: 1 } 17% { opacity: 1 } 19% { opacity: 0 } 100% { opacity: 0 } } @-moz-keyframes titleAnimation { 0% { opacity: 0 } 8% { opacity: 1 } 17% { opacity: 1 } 19% { opacity: 0 } 100% { opacity: 0 } } @-o-keyframes titleAnimation { 0% { opacity: 0 } 8% { opacity: 1 } 17% { opacity: 1 } 19% { opacity: 0 } 100% { opacity: 0 } } @-ms-keyframes titleAnimation { 0% { opacity: 0 } 8% { opacity: 1 } 17% { opacity: 1 } 19% { opacity: 0 } 100% { opacity: 0 } } @keyframes titleAnimation { 0% { opacity: 0 } 8% { opacity: 1 } 17% { opacity: 1 } 19% { opacity: 0 } 100% { opacity: 0 } } /* Show at least something when animations not supported */ .no-cssanimations .cb-slideshow li span{ opacity: 1; } @media screen and (max-width: 1140px) { .cb-slideshow li div h3 { font-size: 140px } @media screen and (max-width: 600px) { .cb-slideshow li div h3 { font-size: 80px }
0
Comments
is this thing on? anyone have any ideas? need some help here if possible...thx!
I have the non-zoom version working as follows:
HTML:
CSS:
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
thx so much for the help ...i have no clue about what the timing is as all i did was copy someone elses code...i was instructed how to add more images (with math) but as i couldn't get the 6 to work i wanted to start there..if that works how do i add more photos to my SS? i was thinking of 10-12 images..and i suck at math so please go easy on me!! thx!
I would delete the HTML/CSS blocks and start over. Try pasting in the code again. It should work.
Also, the math is very simple. If each image is 6 seconds long, just add 6 to the previous one....
6, 12, 18, 24, 36, 48, 54, 60, 66, 72, 78, 84 ...
If you're really having trouble adding 6 to the previous number just open the calculator app on your computer and keep doing 6+6+6+6....
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
ok..i got it to work with the 8 no problem...i added 8 more for a total of 16 but now there is a transition issue. i read in the other thread that the transition keyframe %'s needed to be fixed if you added more pics...that is where i was having the math issues...ok..i will see if i can figure it out tomorrow..my head hurts!!!! there has to be a simpler way!!
EDIT - IT WORKS!!!!!! :ivar WOOT!! i have a few tweaks to make it totally rock but i had to fix the transition keyframes to make it work right...PHEW!! lots of work!! but now i know what needs to be done!! thx all for the help!
and in case anyone is interested..here is the code i used to finally get it to work..
HTML
CSS