-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rotate and transform paper-fab icon #6
Comments
To support this, maybe we could add a class to the trigger element every time the menu is open and remove the class when the menu is closed. That way anyone can add a css transition, for this case a |
This seems to be a good solution for the example above. But how do you support other kind of image/icon animations? Is a css class sufficient for all kind of animations? E.g. morphing, rotating single lines instead of the whole icon etc.? |
Could you please expose the animation duration property as well? Thanks |
@pomber To add a class to the element seems to be not sufficient to do the CSS rotate transformation due to the fact that there are 3
Am I wrong? I'll tried to use the property This is my CSS transition code:
The problem seems to be the close animation where the rotate(-45deg) transition have to be made. (After the menu hides the I think the best way would be a function trigger/call either on |
take a look at https://www.webcomponents.org/element/Pupix/adaptive-icon for inspiration |
sorry wrong repo (although that one is cool too) look at this: https://www.webcomponents.org/element/hotforfeature/delightful-icons |
It would be nice to transform paper-fab icon from one image (in closed state) to another (in opened state).
So for example from closed state
to opened state
The text was updated successfully, but these errors were encountered: