Css animation with js

248
February 13, 2018, at 11:00 AM

I wanted to make a code wich make that when you drag an element on an other, a css animation start. here is he link http://NoobCode.repl.co/Cryptage

when you drag the key on the cadenas you get an alert with a link. on the link there is a little animation. id like this animation to start when i drag the key on the cadena. I searched but it dont seems possible to make it start with a function.

Answer 1

Use your script to add a class to the element you want to animate.

In your css:

.accordion { ... whatever style } .accordion.animate { animation css here }

Rent Charter Buses Company
READ ALSO
How to fix corruption when expanding multiple panels in PrimeNG?

How to fix corruption when expanding multiple panels in PrimeNG?

I'm working with multiple panels and I added functionality to expand/collapse them allMy issue is that when I expand them I see an ugly corruption text from all the panels

187
Scrapy does not find text in Xpath or Css

Scrapy does not find text in Xpath or Css

I've been at this one for a few days, and no matter how I try, I cannot get scrapy to abstract text that is in one element

204
Tab behavior issue on Radio buttons group

Tab behavior issue on Radio buttons group

I have three radio buttons in a group, which has a child input field eachI am facing isseus with TAB behavior of keys

198
Adapt the Angular Material input field to screen width

Adapt the Angular Material input field to screen width

I want to make a two equal column grid with CSS grid systemIn each of the columns I want to put an input field that takes the 100% of the column's width

252