Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Hippo enter and leave transitions #50

Merged
merged 6 commits into from
Jul 20, 2017
Merged

Hippo enter and leave transitions #50

merged 6 commits into from
Jul 20, 2017

Conversation

randomPoison
Copy link
Owner

This adds a brief transition as hippos enter and leave the screen. I'm using Vue's list transitions, which work well enough for this purpose.

The gist of it is that by wrapping the list of hippos on each side in a <transition-group> element, Vue will automatically apply CSS classes to the elements when they're added an removed, and then we can apply different styles to create the animation effects through the CSS.

@randomPoison randomPoison merged commit f7843fc into master Jul 20, 2017
@randomPoison randomPoison deleted the hippo-transitions branch July 20, 2017 20:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant