We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When rendering Flipper and Flipped inside shadow dom, the transformation gets applied to the flipped element but the animation does not start.
Flipper
Flipped
See this CodeSandbox.
import React, { useState } from "react"; import ReactDOM from "react-dom"; import { Flipper, Flipped } from "react-flip-toolkit"; import root from "react-shadow"; const AnimatedSquare = () => { const [fullScreen, setFullScreen] = useState(false); const toggleFullScreen = () => setFullScreen((prevState) => !prevState); let style = { background: "red", width: "200px", height: "200px" }; if (fullScreen) { style = { background: "blue", width: "400px", height: "400px" }; } return ( <root.div> <div style={{ width: "100vw", height: "100vh" }}> <Flipper flipKey={fullScreen}> <Flipped flipId="square"> <div style={style} onClick={toggleFullScreen}> hi </div> </Flipped> </Flipper> </div> </root.div> ); }; ReactDOM.render(<AnimatedSquare />, document.querySelector("#root"));
The text was updated successfully, but these errors were encountered:
Just want to highlight that this is not specific to react-shadow. The library is not working inside shadow DOM in general.
Would love to know if there is a trick to work around this, or any clues to open a PR to fix it.
Sorry, something went wrong.
@aholachek thoughts?
No branches or pull requests
When rendering
Flipper
andFlipped
inside shadow dom, the transformation gets applied to the flipped element but the animation does not start.See this CodeSandbox.
The text was updated successfully, but these errors were encountered: