• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Text gradients with CSS with SVG fallback. [unmaintained]

React Text Gradient.

UNMAINTAINED

Unmantained for now.

It seems that there are modern ways to do this, see https://css-tricks.com/snippets/css/gradient-text/


A React component that creates text gradients with CSS, including a SVG fallback.

Live demo.

react-textgradient

Features.

  • Uses CSS gradients when possible (Chrome, Safari, iOS, Android).
  • Uses SVG as fallback on Firefox.
  • The text remains as fluid text (never replaced with svg).
  • Font size, family, weight, etc... controlled by CSS as normal.

Installation.

npm install react-textgradient --save

Usage.

First, require the component

var TextGradient = require('react-textgradient');

And then use it like this:

<TextGradient
  text='React Text Gradient'
  fromColor='#FFFF00'
  toColor='#FF8008'
  direction='right' />

And you will get the example of the start of the page.

Props.

  • text: The content.
  • fromColor: The initial color for the gradient. Can be any valid color for CSS and SVG (HEX, RGBA, RGB, etc...).
  • toColor The final color of the gradient.
  • fallbackColor: The color to display on unsupported browsers. Optional, defaults to toColor.
  • direction: One from 'top', 'left', 'bottom', 'right'. Optional, defaults to 'right'.

Roadmap.

  • Support for radial gradients.
  • Arbitrary gradient direction.

More Repositories

1

img2css

Convert any image to pure CSS. Recreates images using only box-shadows.
JavaScript
2,465
star
2

visual-center

Tool to better align logos in the center of a container.
JavaScript
1,410
star
3

control-user-cursor

Small experiment to 'control' the user cursor with JavaScript and CSS.
JavaScript
1,064
star
4

pintr

Create single line illustrations from your pictures. Get a drawing, SVG or coordinates for a CNC.
TypeScript
706
star
5

cohesive-colors

Tool that help you to create more cohesive color schemes. Add a tint to your existing colors.
TypeScript
519
star
6

react-blur

React component to blur image backgrounds using canvas.
JavaScript
455
star
7

emoji-to-scale

Your favorite emojis. To real-life scale, more or less.
JavaScript
348
star
8

clashjs

Javascript AI battle game. Play by creating a javascript function to command your battleship.
JavaScript
245
star
9

docs2epub

Doc scraper and ebook generator / library. [unmaintained]
JavaScript
235
star
10

gitpage-timemachine

Visualize the evolution of your website in a 3D time-machine fashion.
Vue
160
star
11

brutalita

Brutalita is an experimental font and font editor, edit in your browser and download OTF.
TypeScript
152
star
12

react-number-easing

React component to interpolate rendering of numbers in the frontend.
JavaScript
150
star
13

morphin

Create pixel art interpolations from your own sprites and embed them in your website with only CSS.
JavaScript
81
star
14

canvas-image-utils

Utils for image data.
TypeScript
63
star
15

react-textselect

Select dropdown over text React component. [unmaintained]
JavaScript
49
star
16

colorblendjs

Color blends for javascript.
HTML
36
star
17

timelapses

JavaScript
35
star
18

react-tour

Create nice step-by-step intros with React. [unmaintained]
JavaScript
30
star
19

droste-creator

Create recursive images with the droste effect.
JavaScript
29
star
20

triangulator

Delaunay triangulation image generator.
JavaScript
16
star
21

react-native-ui

Fancy UI components for react-native
JavaScript
12
star
22

sentence-length-art

Tool that helps you visualize the length of your sentences.
JavaScript
12
star
23

color-sort

A simple lib for sorting colors by perception.
JavaScript
8
star
24

the-only-website-builder

[WIP] You are going to design a website like this anyway... let's do it the easy way
CSS
8
star
25

get-video-screenshot

Library to capture screnshots / thumbnails as images from a videos. Only works in the browser.
JavaScript
7
star
26

react-clickaway

Clickaway mixin for react, based on https://github.com/callemall work
JavaScript
7
star
27

react-app-starter

React starter boilerplate for small apps.
JavaScript
5
star
28

basic-stl-generator

Basic utils to generate a STL file in javascript
JavaScript
4
star
29

actualizar

Update every npm dependency to `@latest`.
JavaScript
4
star
30

tronmmo

A TRON-style MMO game, made with nodejs and canvas.
JavaScript
3
star
31

react-color-range

Super tiny color input ranges for React.
JavaScript
3
star
32

lightroom-interpolator

Interpolate lightroom edits between photos for better timelapses.
JavaScript
3
star
33

swtimer

Startupweekend Timer
JavaScript
3
star
34

cutereset

Small and cute flexbox ready css reset.
CSS
2
star
35

dancing-dots

A js lib to get nice moving dot coordinates.
JavaScript
2
star
36

points

Experiment with live image filters
Vue
1
star
37

time-remaning-estimator

Estimate the remaining time for any process with known progress.
1
star
38

webworker-demo

Demo para GDLJS
JavaScript
1
star
39

project-euler

JavaScript
1
star