+ 1

Slider changing animation value.

Do somebody know how to make slider/range changing the animation value of the other object in the CSS? animation : 60s;

12th May 2018, 9:30 AM
Road_to_ BigStar
Road_to_ BigStar - avatar
6 Respostas
+ 2
$('#slider').change (function(){ var speed=$(this).val ()+'s'; $('#animation').css ('animation','slide ' + speed + ' repeat infinite'); }); or var speed = document.getElementById(''slider').value + 's'; var ani = document.getElementById('animation'); ani.style.animation='slide ' + speed + ' repeat infinite';
12th May 2018, 12:53 PM
Nommer101
Nommer101 - avatar
0
is this what you were searching for or did i just misunderstood your question https://www.sololearn.com/learn/4223/?ref=app
12th May 2018, 9:37 AM
Roel
Roel - avatar
0
|-------=----| I mean that type range
12th May 2018, 9:42 AM
Road_to_ BigStar
Road_to_ BigStar - avatar
0
oh ok, thats something ive been searching for too, i just gave up, but i wish you good luck finding someon who can help you👍
12th May 2018, 9:43 AM
Roel
Roel - avatar
0
Do you have an example app or can you provide a clearer explanation on what you are asking for. Do you want a slider that moves through the steps of an animation or do you want a slider to change settings of an animation?
12th May 2018, 10:01 AM
Nommer101
Nommer101 - avatar
0
https://imgur.com/a/2m9xJcE Range value should change animation value.
12th May 2018, 10:20 AM
Road_to_ BigStar
Road_to_ BigStar - avatar