Skip to content
Advertisement

Transition from right to left

I want my div on the right to transition from right to left, and the div on the left to transition from left to right.

The one on the left is naturally moving from left to right but how do I get the one the right to move from right to left.

This is the code that I have used.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

when you use display:none you can’t use transition you must edit you code same this codes to work

JavaScript

change css to this codes

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement