Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(): Add animation on skeleton text #14068

Closed
wants to merge 1 commit into from
Closed

feat(): Add animation on skeleton text #14068

wants to merge 1 commit into from

Conversation

Fdom92
Copy link

@Fdom92 Fdom92 commented Feb 23, 2018

Short description of what this resolves:

The animation gives you a feeling of progress and is something i miss in this component.

Changes proposed in this pull request:

  • Add animation on the skeleton text component.

Copy link
Contributor

@manucorporat manucorporat left a comment

Choose a reason for hiding this comment

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

Design related PR needs approval from @bensperry, but I will give it a try!

Thanks for the PR!

render () {
return <span style={{width: this.width}}>&nbsp;</span>;
return <span style={{width: this.width}} class={this.animated ? 'animated' : ''}>&nbsp;</span>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Class should be like this:

class={'animated': this.animated}

Copy link
Author

Choose a reason for hiding this comment

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

I see.. Thanks for the review, that looks cleaner :) ill update the PR later

@Fdom92 Fdom92 closed this Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants