Quantcast
Viewing all articles
Browse latest Browse all 4828

Add class after didRender()

@davidpmccormick wrote:

I’m trying to animate a component into view by setting an ‘isActive’ property to true in the didRender() method, and watching for isActive in the component’s classNameBindings, then adding a class which, combined with a css transition, should move the component into the viewport.

The problem is that the class seems to have been added precisely at-the-time the component was rendered, so the transition doesn’t occur (the component is rendered already at its final location). Is there a better way to achieve what I want than sticking it in a setTimeout?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles