1.0.0 • Published 25 days ago

@crabas0npm/commodi-illum-inventore v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

React Scroll Parallax

NPM Version Latest NPM Downloads Codecov Rate on Openbase

Test and Lint Storybook Storybook

React hooks and components to create parallax scroll effects for banners, images or any other DOM elements. Utilizes Parallax Controller to add vertical or horizontal scrolling based effects to elements. Optimized to reduce jank on scroll and works with SSR and SSG rendered React apps.

If you're coming from V2, here's a migration guide.

Install

With npm

npm install react-scroll-parallax

or yarn

yarn add react-scroll-parallax

Example

Create effects with a hook:

function Component() {
  const parallax = useParallax({
    speed: -10,
  });
  return <div ref={parallax.ref} />;
}

or with a component:

function Component() {
  return (
    <Parallax speed={-10}>
      <div />
    </Parallax>
  );
}

Getting Started

Read the documentation for setup and usage instructions.

Demos

Docs: Hooks

Docs: Components

efficientcolourgradients cssWebSockettrimqsaccessorhasString.prototype.trimsymbolconsolearraybuffersigtermcachemkdirstacitlinewrapmergeunicodebrowserbrowserlistasciijson-schema-validationjsdiffwhich256prunewidthtesterbcryptwritestringifierform-validationio-tsformterminalarrayreact-hook-formfinduptypedarrayspostcssfunctionaldependency managerweakmapstatelessless compilerhelpersfunctionsymlinkssigintmakeJSON-SchemagetintrinsicArray.prototype.findLastIndexchineseinternaljsondirHyBilookdeletefindLastES2020reduceSymbolReactiveExtensionsconfigurableArray.prototype.containsfind-upReflect.getPrototypeOfpureslicecode pointsthreecore-jsstylesheettypesafeObject.fromEntriesposees5cryptoRxestreebatches2015ECMAScript 3jsspringoncepasswordserializerjapanesehttpsinstallCSSStyleDeclarationtoArraypromiseassertgetteres-abstractconcatwordwrapcss lessargumentansimodulesharmonyes-shim APImatchECMAScript 2020descriptorsslotrangeerrorES2017WeakSetapisettershelltranspilersymbolslistenersmake dirhardlinkswarningexit-codextermregexpaccessibilityObject.definePropertyparentsclass-validatorcjkArray.prototype.filter.envcommanderstream-0JSONtrimRighttypeerrorchromenested csssearchArrayBuffer.prototype.slicetypeofgenericsArrayutilitiesextraregular expressionless mixinsdeepclonejsonschemafileerrorArray.prototype.flattenStreamsvalidationESnexteslintless.jsincludesl10nduplexmkdirpisrequiredomcharactersfunctionspromisesdataspeedformssomejsxirqtoolkitfslibphonenumberes-shimsObjectcall-bindbytepluginvalueECMAScript 2018windowsimportrequestconcatMapECMAScript 2023equalityajvauthgraphqlECMAScript 2022collectionfromtrimEndautoprefixercss variableflagkarmatranspilepropertiesflattenarktypemochaintrinsicexitjavascriptfseventsURLSearchParamsTypedArraylockfilees2017Array.prototype.findLastqueueSetstringwritablevariablesmapmovespinnernodejsthroatSymbol.toStringTaghigher-ordersetImmediatecolumnreadablestreamPromisetddkeyPushrmdirkoreaninvariantES7mkdirArrayBuffertestrfc4122logprotobuffphookslruenderES2021typedarrayECMAScript 6stableramdaponyfillcommand-linebundlerelectronasyncsameValueZerocallArrayBuffer#slicemimerobustkeysextenda11yupjsdompackagescoerciblereduxgetopttsliblesscssframerenvironmentECMAScript 2016call-boundfast-deep-copy_.extendstatus
1.0.0

25 days ago