Working Fullscreen Slideshow... Almost
jrhessey
Registered Users Posts: 41 Big grins
I am using the css3 animations, however they aren't compatible in ie9 and prior. I'm trying to figure out a way to redirect to another page based on ie version or use the modernizr javascript but we can't even load it from an external site. So far having no luck, so I thought I would post it here and see if someone else might come up with something...
Here is the working example
You must either be using Chrome, Firefox, or ie10 to view the transitions, otherwise it shows a black screen.
Here is the code, just create a page and use the css and html blocks
html
css
There are customizations in the code above to make it work with smugmugs design, however you can downlaod the orginal code from here
Here is the working example
You must either be using Chrome, Firefox, or ie10 to view the transitions, otherwise it shows a black screen.
Here is the code, just create a page and use the css and html blocks
html
<ul class="cb-slideshow"> <li> <span>Image 01</span> </li> <li> <span>Image 02</span> </li> <li> <span>Image 03</span> </li> <li> <span>Image 04</span> </li> <li> <span>Image 05</span> </li> <li> <span>Image 06</span> </li> </ul>
css
/*----- 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://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-CX69Ndt/1/X3/20120818-_MG_6051-X3.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } /*----- Code to display fullscreen slideshow for all other browsers -----*/ .sm-page-powered-by { position: absolute; bottom: 0; } .cb-slideshow, .cb-slideshow:after { position: fixed; width: 100%; height: 100%; top: 0; left: 0; 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; -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; color: rgba(169, 3, 41, 0.8); } .cb-slideshow li:nth-child(1) span { background-image: url(http://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-CkrWB3k/1/X3/20110928-_MG_2584-Edit-Edit_HDR-X3.jpg); } .cb-slideshow li:nth-child(2) span { background-image: url(http://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-9JL5kQV/1/X3/20130316-_MG_7842-X3.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://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-CX69Ndt/1/X3/20120818-_MG_6051-X3.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://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-2GGbgfP/1/X3/20120818-_MG_6044-X3.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://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-4bNTxfc/1/X3/20120616-_MG_5100-X3.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://donhesseyphotography.smugmug.com/Other/Homepage-Slideshow/i-ND77Phc/1/X3/20111010-_MG_2939-Edit_HDR_2-X3.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; } @-webkit-keyframes imageAnimation { 0% { opacity: 0; -webkit-animation-timing-function: ease-in; } 8% { opacity: 1; -webkit-transform: scale(1.05); -webkit-animation-timing-function: ease-out; } 17% { opacity: 1; -webkit-transform: scale(1.1); } 25% { opacity: 0; -webkit-transform: scale(1.1); } 100% { opacity: 0; } } @-moz-keyframes imageAnimation { 0% { opacity: 0; -moz-animation-timing-function: ease-in; } 8% { opacity: 1; -moz-transform: scale(1.05); -moz-animation-timing-function: ease-out; } 17% { opacity: 1; -moz-transform: scale(1.1); } 25% { opacity: 0; -moz-transform: scale(1.1); } 100% { opacity: 0; } } @-o-keyframes imageAnimation { 0% { opacity: 0; -o-animation-timing-function: ease-in; } 8% { opacity: 1; -o-transform: scale(1.05); -o-animation-timing-function: ease-out; } 17% { opacity: 1; -o-transform: scale(1.1); } 25% { opacity: 0; -o-transform: scale(1.1); } 100% { opacity: 0; } } @-ms-keyframes imageAnimation { 0% { opacity: 0; -ms-animation-timing-function: ease-in; } 8% { opacity: 1; -ms-transform: scale(1.05); -ms-animation-timing-function: ease-out; } 17% { opacity: 1; -ms-transform: scale(1.1); } 25% { opacity: 0; -ms-transform: scale(1.1); } 100% { opacity: 0; } } @keyframes imageAnimation { 0% { opacity: 0; animation-timing-function: ease-in; } 8% { opacity: 1; transform: scale(1.05); animation-timing-function: ease-out; } 17% { opacity: 1; transform: scale(1.1); } 25% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } } @-webkit-keyframes titleAnimation { 0% { opacity: 0; -webkit-transform: translateY(200px); } 8% { opacity: 1; -webkit-transform: translateY(0px); } 17% { opacity: 1; -webkit-transform: scale(1); } 19% { opacity: 0; } 25% { opacity: 0; -webkit-transform: scale(10); } 100% { opacity: 0; } } @-moz-keyframes titleAnimation { 0% { opacity: 0; -moz-transform: translateY(200px); } 8% { opacity: 1; -moz-transform: translateY(0px); } 17% { opacity: 1; -moz-transform: scale(1); } 19% { opacity: 0; } 25% { opacity: 0; -moz-transform: scale(10); } 100% { opacity: 0; } } @-o-keyframes titleAnimation { 0% { opacity: 0; -o-transform: translateY(200px); } 8% { opacity: 1; -o-transform: translateY(0px); } 17% { opacity: 1; -o-transform: scale(1); } 19% { opacity: 0; } 25% { opacity: 0; -o-transform: scale(10); } 100% { opacity: 0; } } @-ms-keyframes titleAnimation { 0% { opacity: 0; -ms-transform: translateY(200px); } 8% { opacity: 1; -ms-transform: translateY(0px); } 17% { opacity: 1; -ms-transform: scale(1); } 19% { opacity: 0; } 25% { opacity: 0; -webkit-transform: scale(10); } 100% { opacity: 0; } } @keyframes titleAnimation { 0% { opacity: 0; transform: translateY(200px); } 8% { opacity: 1; transform: translateY(0px); } 17% { opacity: 1; transform: scale(1); } 19% { opacity: 0; } 25% { opacity: 0; transform: scale(10); } 100% { opacity: 0; } } .no-cssanimations .cb-slideshow li span { opacity: 1; } @media screen and (max-width: 1140px) { .cb-slideshow li div h3 { font-size: 100px; } } @media screen and (max-width: 600px) { .cb-slideshow li div h3 { font-size: 50px; } }
There are customizations in the code above to make it work with smugmugs design, however you can downlaod the orginal code from here
0
Comments
http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/
My Fine Art Photography
My Infrared Photography
www.CynthiaMerzerPhotography.com
All I did was add a HTML box to the homepage, copied your HTML and CSS code and changed the links from your photos to mine.
Love the look using that code, real nice.
Steve
www.slipkid.com
"The problem with socialism is that you eventually run out of other people's money". -- Margaret Thatcher
I think when I originally changed the links to the images from your website to mine I introduced a rouge character or something. I deleted the code, started again and it now works.
Thanks so much for sharing the code.
www.richknechtphotography.com
Looks terrific! Just to clarify, which code did you use and where did you put it? Canyou share just what you did to get the homepage to look this way?
Thanks!
My Fine Art Photography
My Infrared Photography
www.CynthiaMerzerPhotography.com
Create a custom page
Put the html code in an html block, change my pictures to your pictures
Put the css code in a css block
That should be eall you need to do.
I'm using smokies, I think. I've got the z-index set low enough thoug that all themes should work. If it doesn't, let me know the theme and I'll see what needs changed to make it work.
Sure, will be happy to let you know what code I used and how I added it to my homepage.
Firstly, I created a HTML content block on my home page near the top of the page. I copied jrhessey's HTML code into the HTML box. I then copied his CSS code into the CSS bit of the HTML block.
I then replaced the 6 images that were links to his site and replaced them with image links to my site.
eg I changed this
to this
I did the same for the next 5 images (ie child(2) to child(6)).
I wanted to add a 7th image so I added this to the end of the HTML:
and worked out that I needed to add this after the child(6) image:
and this after the second lot child(6) delays
as I had worked out that each image child will have a delay list of 6 seconds more than the previous child.
Hopefully I've explained that well enough. I'm only basking slightly in jrhessey's original code so if you need any further explanation I'm sure he will be able to help!
Thanks very much! I've added the code to my site.
Any advice on populating a list of url's so we can do some fast cut and paste in order to add to the number of photos?
www.apexonephoto.smugmug.com
http://twitter.com/apexonephoto
http://www.facebook.com/ApexOnePhoto
Put this in your css block
If you want to hide it all together on the page then this code
next add a css block and add this code
Moderator of the People and Go Figure forums
My Smug Site
Thanks so much jrhessey!!! Hard to believe that Smugmug couldn't do this.
Wonder if you can give me some advice. For testing, I created a new design with nothing in it. I created a HTML content block on the Homepage, and entered the HTML code and the CSS block you provided. Edited the image links to match up to my photos. After I publish the changes, I just get a list in the middle of my screen Image 01, Image 02, etc. in a vertical list. I've tried viewing it in Safari and Chrome. What am I missing?
Did you put the CSS code into the CSS box of the HTML block?
One question...is it possible to load another page instead of an image if somebody is using
anything below IE 10?
The thinking is, if I can load a page instead, then I can setup that page using SM's slideshow
vs a visitor seeing a static image.
Thanks
Doug
This was the only thing preventing me from unveiling and you've now solved that!!! Works great! Not the simplest of solutions (would love to just be able to upload a photo to a gallery and have it pick) but it works!!!
Looking forward to SmugMug implementing this and not having to use this "hack" (that's not the right word). You made my day/night/week/month! I'm doing a little dance I'm so happy. Thank you!
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
http://www.dgrin.com/showthread.php?t=237488&highlight=cutting
Cheers!
Looks great, THANK YOU!
My SmugMug
I use Lightroom to sync my current top 10-12 images into one gallery and would love the slideshow to just use that gallery for the home page.
Nikon | Private Photojournalist