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

animate width of the containing span #21

Open
dannyb4 opened this issue Aug 14, 2014 · 2 comments
Open

animate width of the containing span #21

dannyb4 opened this issue Aug 14, 2014 · 2 comments

Comments

@dannyb4
Copy link

dannyb4 commented Aug 14, 2014

Hi,

Nice plugin! One thing, I was wondering if it'd be possible to make it so width of the containing span gets animated when changing words rather than simply snapping to the width of the new word?

This is probably really simple to do but I have a distinct lack of JavaScript skills currently so a little help would be much appreciated!

Kind regards
Danny

@riyaadh-fakier
Copy link

I'm sure this can be done with:

transition-duration {
1s;
}

@dannyb4
Copy link
Author

dannyb4 commented Aug 15, 2014

Yeah that's what I thought initially but using transition-duration on the span just broke the animation and made the jquery fading disappear.

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

No branches or pull requests

2 participants