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

[Request]: Dynamic Element Type (div) #57

Open
paul-vd opened this issue Jan 29, 2020 · 0 comments
Open

[Request]: Dynamic Element Type (div) #57

paul-vd opened this issue Jan 29, 2020 · 0 comments

Comments

@paul-vd
Copy link

paul-vd commented Jan 29, 2020

It would be useful if we could specify the element that's created because if we want to, for example, animate something inside a paragraph it creates a

and div's are not allowed inside paragraphs

image

A proof of concept would be the react-intl FormattedMessage component, have a look at the tagName property
https://github.com/formatjs/react-intl/blob/master/docs/Components.md#formattedmessage

usage would be something like this;

<p>
    My fancy paragraph 
    <ScrollAnimation animateIn="jackInTheBox" tagName="span">can animate</ScrollAnimation>
</p>
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

1 participant