On the site http://provence-corner.fr, i have a "slowly zoom effect " on image (key burns).
How to place my code on a image or a slideshow on Sparkle ??
1- Site settings > Miscellenous > Code Integration (check) Allow HTML element id customization
.
2- Add wide box (content image) and add id SlideShowContentPanel in code integration in Arrange Panel
.
3- Add Embed (Menubar Insert > Embed)
.
4- Add this code in embed element and press save button.
<style>
#SlideShowContentPanel { -webkit-animation: burns 50s; animation: burns 50s; -webkit-transform-origin: center center; -moz-transform-origin: center center; -o-transform-origin: center center; } @-webkit-keyframes burns { from { -webkit-transform: scale(1,1); -o-transform: scale(1,1); transform: scale(1,1); } to { -webkit-transform: scale(1.5,1.5); -o-transform: scale(1.5,1.5); transform: scale(1.5,1.5); } } @keyframes burns { from { -webkit-transform: scale(1,1); -o-transform: scale(1,1); transform: scale(1,1); } to { -webkit-transform: scale(1.5,1.5); -o-transform: scale(1.5,1.5); transform: scale(1.5,1.5); } }</style>
.
5- that’s all…
Ohhhhhhh YES !! Thanks Selcuk ! Thanks !!!
Selcuk.
The file at this link is a test ( https://www.dropbox.com/s/r0fkjf1xe3tdibq/TEST.sparkle?dl=0 )
I placed a zoom effect (in addition to a height: 100vh;) to have the same effect as on www.provence-corner.fr But I do not understand why on my example Sparkle, the zoom effect is applies to everything on top of the image (like the menu). However the menu does not have the same ID
I dont unsderstand ?
Because we give the effect to the whole div when we should have to give it to the img tag inside the div. If you add the image gallery instead of the wide box and change the #full in the embed code to #full img, the problem will disappear.
Coding questions etc etc. But note that a safari bug in some cases prevents an image from fully loading if a transform is applied to the img instead of the enclosing picture.
Lovely website you built! Photos are superb! My mouth is watering after seeing your olives! Nous aimons Provence!
I must be too stupid, can’t I? I can’t combine full height and key burn on the same slideshow object?
Just for future reference - and for others who may want to know the effect name, it’s called, “Ken Burns”. He’s a filmmaker who somehow trademarked the pan-zoom effect on still images for film.
Is it the same Ken Burns that did that marvellous Civil War documentary series years ago?
Hi, great insight here - could you elaborate on the code to img zoom only (and not div) zoom as the dropbox file has been deleted ! Thanks in advance. (Any additional web resources for fancy button hover transitions etc welcome too )
Yes Jazzbird, thats him!
Really a phantastic site. Great job DesignDealer