Skip to content

Commit

Permalink
add CSS animation note
Browse files Browse the repository at this point in the history
  • Loading branch information
pzuraq committed Dec 14, 2018
1 parent 5fc7521 commit f2ef0e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion text/0000-render-element-modifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ export default class Component.extend({
#### Example: Adding a class to an element after render for CSS animations

This adds a CSS class to an alert element in a conditional whenever it renders
to fade it in, which is a bit of an extra hoop.
to fade it in, which is a bit of an extra hoop. For CSS transitions to work, we
need to append the element _without_ the class, then add the class after it has
been appended.

Before:

Expand Down

0 comments on commit f2ef0e9

Please sign in to comment.