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
<script src="https://cdn.jsdelivr.net/gh/tengbao/vanta/vendor/three.r92.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/tengbao/vanta/dist/vanta.fog.min.js"></script>
in index.html Replace the ending of the filename with your desired effect. 2. Add a componentWillMount() listener and put in it
window.VANTA.FOG({ el: "#dummy", });
The text was updated successfully, but these errors were encountered:
Thanks for the tip! I'll add this to the readme.
Sorry, something went wrong.
As a quick note: You can also use this with Function-Components in React!
import vanta from './vanta.net.min.js'; import {useRef, useLayoutEffect} from 'react' export default (props) => { const element = useRef<HTMLDivElement>() useLayoutEffect(() => { vanta({ el: element.current }) }) return ( <> <script src="/static/three.r92.min.js"></script> <div ref={element}></div> </> ) }
No branches or pull requests
in index.html
Replace the ending of the filename with your desired effect.
2. Add a componentWillMount() listener and put in it
The text was updated successfully, but these errors were encountered: