Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Animation): support keyframes as functions and add keyframeParams prop #794

Merged
merged 9 commits into from
Jan 31, 2019

Conversation

mnajdova
Copy link
Contributor

@mnajdova mnajdova commented Jan 29, 2019

This PR adds keyframeParams in the definition of the animations. Also, keyframes now can be defined as functions, that will receive the keyframeParams defined in the animation itself or as a prop from the user. There is an example of the usage added as part of the PR. This fixes #760

@mnajdova mnajdova changed the title feat(animation): support keyframes as functions and add keyframeParams prop feat(Animation): support keyframes as functions and add keyframeParams prop Jan 30, 2019
Copy link
Member

@miroslavstastny miroslavstastny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically it is obvious, but shouldn't we document anywhere that each unique keyframeParams will render as a new @keyframes?

@mnajdova
Copy link
Contributor Author

mnajdova commented Jan 30, 2019

@miroslavstastny that's a great point. Will add info in the examples of the keyframeParams that new keyframe will be added if the params are changed..
Update I added orange Segment stating this before the examples:
image

@mnajdova mnajdova merged commit b5831a8 into master Jan 31, 2019
@layershifter layershifter deleted the feat/keyframes-as-functions branch January 31, 2019 10:23
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.

Keyframes - Animation override for transform values
3 participants