+ 8

In this code Why isnt the gif sliding towards left side???

https://code.sololearn.com/WXcDViJu8crF/?ref=app Why isnt it working? I want the gif to be slided left side -50vw as we click on it.

24th May 2021, 9:53 AM
THE INDIAN - avatar
4 Answers
+ 1
It is working fine in my device 👀 but if you want transition in that then replace onclick function of hb div tag in html to this.style.transform = 'translateX(-100%)'
24th May 2021, 10:29 AM
Jigyasu Tanwar
Jigyasu Tanwar - avatar
Change your div to a button. Some devices dont support onclick. If you change it to a button, it should work on your device
24th May 2021, 10:44 AM
Brain & Bones
Brain & Bones - avatar
It's working just do code intending And add this.transform = "translateX(-100%)"
26th May 2021, 2:29 AM
Manthan Kangtani
Manthan Kangtani - avatar
heck akun ff
5th Jun 2021, 9:00 AM
Wahyu Ridho Purnomo
Wahyu Ridho Purnomo - avatar