frontend-playground-react is a React project that serves as a wrapper around mostly unrelated components. They're usually centered around UI animation and effects
- basic layouts
- parallax effect
- text & layout animations
- CSS modules
- useEffect & useRef Hooks
- class-based components & functional components
With only tuning a few lines of these components, real cool and different effects can be achieved
A simple text animated using vanilla JS and React Hooks. Kinda versatile.
A simple text animated trying to achieve a glitching effect, using vanilla JS and React Hooks.
A simple SVG animation (in the shape of text) built with class-based and functional.
A simple parallax effect that reacts to mousePosition using vanilla JS and React Hooks
A simple parallax effect that reacts to scrollPosition using vanilla JS and React Hooks. There's implemented a fade gradient to background in the background image
A simple background moving effect on a background-clipped text using vanilla JS and React Hooks
A simple styled select input, with no animations
A simple input animation built with React Hooks and CSS
A simple CSS reflect effect (non-standard) applied to a contenteditable element
A simple horizontal progress that indicates the position of the current viewport, with CSS styles applied
A simple example of a SPA using the barba.js library and gsap
A a tiny gallery using class-based components and some css effects applied.
Use the node package manager npm to install frontend-playground-react.
// for the installation
cd ./frontend-playground-react
npm i
// for running the project
npm start
These components unless otherwise stated are thought to be used in a visual and aesthetically manner. For now, they are all presentational components. That's why the structure component-parent component is what it is.
- Enter in the App Component and change the prop wrappedComponent and the name of the component you want to test
- Save App.js
- You're good to go!
import React from 'react';
import Wrapper from './components/UI/Wrapper/Wrapper';
import Parallax from './components/UI/Parallax/Parallax';
function App() {
return (
<Wrapper wrappedComponent="Parallax">
<Parallax />
</Wrapper>
);
}