anime function for array in AnimeJS

0

I'm trying to affect an array of objects with animejs , my first function has no problems, but the second one is not, even though my browser's console does not throw any errors at me either.

    <div id="b1" class="box b1"></div>
    <div id="b2" class="box b2"></div>
    <div id="b3" class="box b3"></div>
    <div id="b4" class="box b4"></div>



<script src="animejs/anime.js" type="text/javascript">

anime({
targets: 'div.box.b1',
translateY:[
  {value:150,duration :520},
  {value :0,duration :1000}
],
rotate:{
  value:'2turn',
}
});
-- esta es mi función que no sirve :s
anime({
  targets: ['div.box.b1','div.box.b2'],
  scale: 1.2,
  duration: 600,
  autoplay:false
});
    
asked by E.Rawrdríguez.Ophanim 10.09.2018 в 00:03
source

0 answers