force dom render 1

force dom render

element.style.webkitTransform = 'scale(1)';

Here is what the above code is Doing:
1. We’re creating a new class called “ScaleInAnimation” that inherits from the “Animation” class.
2. We’re overriding the “on_progress” method to scale the element up to 1.0.
3. We’re overriding the “on_complete” method to set the element’s scale back to 1.0.

Now that we have our animation class, let’s use it to animate the “Hello, World!” label.

Similar Posts