javascript - creating a consistent simple banner text animation -


hey guys new javascriptand tried creating banner carousel animation , i.e, have 3 banners , everytime , slide comes in text appears animation , problem facing animations on 3 slides ony work till 3 slide scrolls after , when again slide 1 slides in , text on slide 1 not animated , animations don't happen here on .

i inspired banner animations website :

banner text animation inspiration .

now have tried following css animations :

@-webkit-keyframes bounceindown {   0%, 60%, 75%, 90%, 100% {     transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);   }    0% {     opacity: 0;     transform: translate3d(0, -3000px, 0);   }    60% {     opacity: 1;     transform: translate3d(0, 25px, 0);   }    75% {     transform: translate3d(0, -10px, 0);   }    90% {     transform: translate3d(0, 5px, 0);   }    100% {     transform: none;   } }  .bounceindown {   animation-name: bounceindown; }    @-webkit-keyframes bounceinright {   0%, 60%, 75%, 90%, 100% {     transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);   }    0% {     opacity: 0;     transform: translate3d(3000px, 0, 0);   }    60% {     opacity: 1;     transform: translate3d(-25px, 0, 0);   }    75% {     transform: translate3d(10px, 0, 0);   }    90% {     transform: translate3d(-5px, 0, 0);   }    100% {     transform: none;   } }  .bounceinright {   animation-name: bounceinright; } 

see fiddle , u'll understand better .

i fascinated text animations on banners , new jquery , js in general , have make animations appear on slide , every time new slide comes in. have created css-3 animations myself stuck here .

thank you.

alexander.

if have 3 items show in carousel method can try this. make "master" div contain other 3 divs. every div contain image background , text , use javascript animation text. , slide 3 divs that:

//function slide divs $(document).ready(function() {  var counter = 1;  $("#d1").show();  function change(){       //change 3 divs inside master div       if(counter == 0){          $("#d3").hide();          $("#d1").show();          counter++;      }else if(counter == 1){          $("#d1").hide();          $("#d2").show();          $("#d3").hide();          counter++;      }else if(counter == 2){          $("#d1").hide();          $("#d2").hide();          $("#d3").show();          counter++;      }else{          counter = 1;          $("#d3").hide();          $("#d1").show();      }   } //every 6 seconds setinterval(change, 6000); }); 

with css set d2 , d3 invisible can show , hide them javascript code.

is looking for?


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -