+ 2

How to change rotate property of css using javascript?

No need to expalin.. just write.. Suppose you have that on tag <img>. U want to create a button to rotate that image on screen... Create function and so on.. But my question is how to change that... Like . . function prev() { var slider = document.getElementById('slider'); num--; if(num < 0) { num = images.length-1; } ***slider.src = images[num];*** } How write that 3star line for rotate??

31st Mar 2020, 7:02 AM
Sohanur Rahman
Sohanur Rahman - avatar
3 Réponses
+ 2
Sohanur Rahman , What do you mean by "No need to explain.. just write.. " And please post complete code. I can't understand what you really asked here.
31st Mar 2020, 7:06 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
🇮🇳Omkar🕉 i meant that... Just write the magic line bro.
31st Mar 2020, 11:17 AM
Sohanur Rahman
Sohanur Rahman - avatar