How to use scrollreveal - 10 common examples

To help you get started, we’ve selected a few scrollreveal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ecmadao / hacknical / frontend / pages / shared / components / GitHub / Mobile / container / GitHubMobileContent.jsx View on Github external
initialScrollReveal() {
    const { repositoriesLoaded, commitLoaded, hotmapLoaded } = this.props
    if (!repositoriesLoaded || !commitLoaded || !hotmapLoaded) return
    if (this.scrollRevealLoaded) return

    this.scrollRevealLoaded = true
    const sr = ScrollReveal({ reset: true })
    try {
      sr.reveal('#reposChartDOM', { duration: 150 })
      sr.reveal('#skillChartDOM', { duration: 150 })
      sr.reveal('#commitsChartDOM', { duration: 150 })
      // sr.reveal('#commitsWrapperDOM', { duration: 150 })
      sr.reveal('#reposWrapperDOM', { duration: 150 })
      // sr.reveal('#languageWrapperDOM', { duration: 150 })
    } catch (e) {
      console.error(e)
    }
  }
github voteliquid / liquid.us / views / home-page.js View on Github external
const activateScrollReveal = () => {
  const ScrollReveal = require('scrollreveal').default
  const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
  sr.reveal('.reveal')
}
github voteliquid / liquid.us / views / candidate.js View on Github external
const activateScrollReveal = () => {
  const ScrollReveal = require('scrollreveal').default
  const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
  sr.reveal('.reveal')
}
github voteliquid / liquid.us / views / join-the-fight.js View on Github external
const activateScrollReveal = () => {
  const ScrollReveal = require('scrollreveal').default
  const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
  sr.reveal('.reveal')
}
github boyney123 / mockit / ui / src / App.js View on Github external
componentDidMount() {
    const sr = (window.sr = ScrollReveal());
    sr.reveal(".hero .title, .card, .subtitle");

    sr.reveal(".route", {
      duration: 750,
      distance: "40px",
      easing: "cubic-bezier(0.5, -0.01, 0, 1.005)",
      interval: 64,
      origin: "bottom",
      viewFactor: 0.32
    });
  }
github buefy / buefy / docs / pages / Home.vue View on Github external
mounted() {
            const sr = ScrollReveal({
                duration: 400,
                delay: 200
            })
            sr.reveal('.home-hero', { delay: 0, origin: 'top' }, 200)
            sr.reveal('.features', 200)
        }
    }
github Significa / react-snuggle / stories / parts.js View on Github external
componentDidMount() {
    ScrollReveal().reveal(".card", { reset: true })
  }
github nk-o / ghostkit / src / gutenberg / extend / scroll-reveal / index.js View on Github external
this.runSRTimeout = setTimeout( () => {
                    const $element = $( `[id="block-${ this.props.clientId }"]` );
                    const element = $element[ 0 ];

                    if ( element ) {
                        const config = parseSRConfig( attributes.ghostkitSR );

                        config.container = '.editor-styles-wrapper';

                        ScrollReveal().clean( element );
                        ScrollReveal().reveal( element, config );
                    }
                }, 150 );
            }

scrollreveal

Animate elements as they scroll into view

GPL-3.0
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis