0.9.282-release3 • Published 1 year ago

react-spline-next v0.9.282-release3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

🖲️ React Spline Next

Modified from '@splinetool/viewer' and wrapped to React component to allow remove logo and customize scroll anchor element.

Quickstart

yarn add react-spline-next
import React from 'react';
import Spline from 'react-spline-next';

const App = () => {
  return (
    <Spline
      url={url}
      loading={'eager'}
      style={{ width: '100%', height: '100%' }}
      hideLogo={true}
      anchorElement={anchorRef.current}
    />
  );
};