Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • Transitions are only implemented on a change in state. That is not going to happen unless the user changes something. You might be asking about animations which are related but different.
    – Paulie_D
    Commented Dec 8, 2017 at 16:49
  • 2
    This is asking for a tutorial on initializing transitions/animations and is too broad a scope based on site guidelines outlined in the help center
    – charlietfl
    Commented Dec 8, 2017 at 16:50
  • 1
    The question is fine, it just needs a less close-baity title. But the answer is that you don't actually require a selector for a transition to occur.
    – BoltClock
    Commented Dec 8, 2017 at 16:55
  • 1
    @charlietfl I don't think my question breaks any rules, I believe my question meets all requirements of a "constructive subjective question" according to the help center.
    – Ronald
    Commented Dec 8, 2017 at 17:53
  • 1
    @Paulie: If we use the term state we need to defne it. And finding a complete and proper definition for it (in the context of a DOM element) can prove challenging. It is safer to say transitions refer to changes in value of animatable properties designated in transition-property.
    – tao
    Commented Dec 8, 2017 at 20:17