Created
July 5, 2021 18:50
-
-
Save marshallmurphy/5fc5b65227fe17a68ae87d51063e437f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
return ( | |
<div className={`${styles.App} + ' ' + ${darkMode ? styles.darkBg : styles.lightBg}`}> // here | |
<div onClick={() => animate()}> | |
<Lottie | |
options={defaultOptions} | |
height={400} | |
width={400} | |
isClickToPauseDisabled={true} | |
playSegments={sequence} | |
/> | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment