animation - CSS KEYFRAMES with links -
i have images scroll nicely in keyframes
@-webkit-keyframes headimage /* safari , chrome */ { 0% {background:url(../images/homebackground1.jpg) no-repeat left top #d8e3e9;} 10% {background:url(../images/homebackground2.jpg) no-repeat left top #d8e3e9;} 30% {background:url(../images/homebackground3.jpg) no-repeat left top #d8e3e9;} 50% {background:url(../images/homebackground4.jpg) no-repeat left top #d8e3e9;} 70% {background:url(../images/homebackground5.jpg) no-repeat left top #d8e3e9;} 90% {background:url(../images/homebackground1.jpg) no-repeat left top #d8e3e9;} }
however want make 1 of these images clickable link, example want homebackground1.jpg link google.co.uk when visible others wont link anywhere when on display.
is there way of doing ?
thanks
to expand bit on ,
the code insert html a
<section id="journey"> </section>
and css
#journey { height:400px; /* border-bottom: 5px solid #e64097; border-top: 5px solid #e64097;*/ background: url(../images/homebackground1.jpg) no-repeat left top #d8e3e9; -moz-animation:headimage 60s infinite; /* firefox */ -webkit-animation:headimage 60s infinite; /* safari , chrome */ }
you need create sprite. of images joined in 1 large image user can see part of image.
then change background-position
using key frames. here jsfiddle demo
in css can use from, to
or %
time scale if know number of key frames need use.
Comments
Post a Comment