All Projects → snipsco → react-scrolling-color-background

snipsco / react-scrolling-color-background

Licence: MIT license
background with color transitioning as you scroll, declarative and easy to setup

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-scrolling-color-background

Scrollreveal
Animate elements as they scroll into view.
Stars: ✭ 20,264 (+38133.96%)
Mutual labels:  scroll, transition
Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+7611.32%)
Mutual labels:  color, scroll
Eager Image Loader
The eager-loading for image files on the web page that loads the files according to your plan. This differs from the lazy-loading, for example, this can be used to avoid that the user waits for the loading.
Stars: ✭ 22 (-58.49%)
Mutual labels:  scroll, background
sshbg
Change terminal background when SSH'ing (on specific terminals)
Stars: ✭ 45 (-15.09%)
Mutual labels:  color, background
react-native-dual
ScrollView, FlatList, SectionList and ListView with dual background
Stars: ✭ 28 (-47.17%)
Mutual labels:  color, background
onscroll-effect
A tiny JavaScript library to enable CSS animations when user scrolls.
Stars: ✭ 35 (-33.96%)
Mutual labels:  scroll, transition
simple-scrollspy
Simple scrollspy without jQuery, no dependencies
Stars: ✭ 53 (+0%)
Mutual labels:  scroll
react-material-color-picker
react-material-color-picker component for selecting colors from google material color palette 📃
Stars: ✭ 19 (-64.15%)
Mutual labels:  color
react-animations-from-scratch
medium.com/@alex_holachek/building-animations-in-react-from-scratch-c66a582c9b65
Stars: ✭ 19 (-64.15%)
Mutual labels:  transition
imgpalr
R package for generating color palettes from arbitrary images.
Stars: ✭ 44 (-16.98%)
Mutual labels:  color
reinvented-color-wheel
A vanilla-js touch-friendly HSV color picker inspired by Farbtastic Color Picker.
Stars: ✭ 43 (-18.87%)
Mutual labels:  color
barecolor
A tiny JavaScript utility for printing colorful console messages.
Stars: ✭ 20 (-62.26%)
Mutual labels:  color
uchroma
An advanced driver for Razer Chroma hardware in Linux
Stars: ✭ 45 (-15.09%)
Mutual labels:  color
NiceDemo
iOS project, built on improved MVP architecture using Coordinator pattern for routing 😎
Stars: ✭ 54 (+1.89%)
Mutual labels:  transition
react-native-styled-text
Styled Text for React Native
Stars: ✭ 57 (+7.55%)
Mutual labels:  color
madao admin manage
🎉 VUE前后端分离管理系统,基于RBAC的后台管理。
Stars: ✭ 38 (-28.3%)
Mutual labels:  background
ColorHelper
No description or website provided.
Stars: ✭ 34 (-35.85%)
Mutual labels:  color
BLE
No description or website provided.
Stars: ✭ 25 (-52.83%)
Mutual labels:  background
go-color
A lightweight, simple and cross-platform package to colorize text in terminals
Stars: ✭ 65 (+22.64%)
Mutual labels:  color
leeks.js
Simple ANSI styling for your terminal
Stars: ✭ 12 (-77.36%)
Mutual labels:  color

react-scrolling-color-background

NPM version MIT License

Background with color transitioning as you scroll, declarative and easy to setup.

Example

https://snipsco.github.io/react-scrolling-color-background/

Production usage of react-scrolling-color-background: https://snips.ai/content/intro-to-ai

Usage

<ScrollingColorBackground
  selector='.js-color-stop[data-background-color]'
  colorDataAttribute='data-background-color'
  initialRgb='rgb(0, 0, 0)'
/>
...
<section
  data-background-color='rgb(32, 202, 172)'
  className='js-color-stop'
>Some content</section
...
<section
  data-background-color='rgb(60, 191, 246)'
  className='js-color-stop'
/>Some other content</section

Component properties

Property Type Description
selector string Css Selector, matching elements expected to have background-color data attribute
colorDataAttribute string data attribute name, where value should be rgb string
initialRgb string rgb string, to use for first render, before any scrolling has occured
className string optional
style string optional, defaults to fixed fullscreen styles

Other libraries

At the time we wrote this library (before it was open sourced) there was no other open source alternative doing what we needed, but by now there is one alternative (that we have seen), although with a different api: https://github.com/mkarabashev/react-scroll-background

Contributing

Please see the Contribution Guidelines.

Copyright

This component is provided by Snips as Open Source Software. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].