troubleshooting Question

Replace div with animation

Avatar of Peter Nordberg
Peter NordbergFlag for Sweden asked on
JavaScriptCSSjQuery
1 Comment1 Solution14 ViewsLast Modified:

I have this example code:

  <div class="steps">
            <div id="1" class="steps__moveLeft steps__moveLeft--red">              red             </div>             <div id="2" class="steps__moveLeft steps__moveLeft--green">               fd              </div>           </div>           <input type="button" value="Move Left" onclick="???" />

Inititially I want div 1 to be shown and div 2 to be hidden.

When I click the button I want div 2 to by animation push div 1 to the left so that div 1 becomes hidden and div 2 is shown.


How can I achieve this?

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros