This community-built FAQ covers the “Delay” exercise from the lesson “Animation - Transitions”.
Paths and Courses
This exercise can be found in the following Codecademy content:
FAQs on the exercise Delay
There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
A transition does not spring back. It has one direction, only. For a spring back effect there will be two transitions. One to go from state A to state B, and one to go from state B to state A. Think in terms of the pseudo-class, :hover. One transition would take effect on mouse over, the spring back effect would happen on mouse out.
As it were I am only referring to CSS. We can manipulate the style sheet with DOM script, of which you may have already become aware. The focus here is literally CSS, with no scripting involved.
Indeed, read up on the pseudo-class. It is a crucial part of CSS. I am not a big fan of JS when CSS will suffice. CSS3 has pretty much made that clear. Why create a codespace where one already exists?
Pre-CSS3 we had JavaScript driven transitions. Those are no longer needed. The authors who gave us scripts up to that point are forever in our debt. Dave Shea woke me up JavaScript driven transitions, and I have little doubt he had a big hand in CSS3 because of his imaginative outlook. We should not lean on script where CSS will do the job.
Drill into the script that supports the transitioning effect when you hover over the banner elements. This was from that ere, when CSS3 didn’t exist and all we had was CSS Level 2.
So I’m still a b it confusing about the “absolute” property in this “delay” case lessen. Why this set " absolute" not “relative”? How do we decide an element/a property when to use “absolute” and when to use “relative”?