Hey Everyone I want to know that can I use Media Queries with JavaScript and how especially with Animejs.
var morphing = anime({
targets: '.polymorph',
points: [{
value: '405,219 0,219 0,0 70,0 77.5,0 84,0 151.5,154.5'
}, ],
easing: 'easeOutQuad',
duration: 1500,
loop: false
});
anime({
targets: '#blip',
opacity: 1,
duration: 7000,
translateX: 290,
loop: true
})
I want to change duration and translateX when it is viewed in mobile device
anime ({
targets: '#blip',
opacity: 1,
duration: 7000,
translateX: 290,
loop: true
})
Thanks
Aucun commentaire:
Enregistrer un commentaire