Skip to content

Instantly share code, notes, and snippets.

View SergioCampbell's full-sized avatar
🛰️
Out if this world

Alkiory SergioCampbell

🛰️
Out if this world
View GitHub Profile
@SergioCampbell
SergioCampbell / scrollreveal in react
Last active March 9, 2021 22:09 — forked from 2075/scrollreveal in react
Scrollreveal in react 2021
// npm install --save scrollreveal or install like you're used to doing it.
// It doesn't work well if there are multiple instances of ScrollReveal,
// so we have to create a module returning an instance:
// file ScrollReveal.js:
import ScrollReveal from 'scrollreveal'
export default ScrollReveal()
// Then in a component:
import React from 'react'
import sr from './ScrollReveal'