All Projects β†’ toplan β†’ react-hold-animation

toplan / react-hold-animation

Licence: MIT License
A higher-order component be use for add animation effects to the placeholder witch in react-hold.

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-hold-animation

react-loading-placeholder
Loading placeholer, inspired by Facebook
Stars: ✭ 17 (+21.43%)
Mutual labels:  placeholder
STTextView
πŸ“ STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (+157.14%)
Mutual labels:  placeholder
webpack-image-placeholder-loader
Generate a solid color image as placeholder
Stars: ✭ 24 (+71.43%)
Mutual labels:  placeholder
DummyJSON
DummyJSON provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
Stars: ✭ 213 (+1421.43%)
Mutual labels:  placeholder
SkeletonPlaceholderView
A library for creating dynamic skeleton view
Stars: ✭ 25 (+78.57%)
Mutual labels:  placeholder
promise
Common interface for simple asynchronous placeholders.
Stars: ✭ 66 (+371.43%)
Mutual labels:  placeholder
Aiforms.effects
AiForms.Effects for Xamarin.Forms
Stars: ✭ 245 (+1650%)
Mutual labels:  placeholder
averroes
Java bytecode generator for sound and precise partial program analysis
Stars: ✭ 19 (+35.71%)
Mutual labels:  placeholder
NetworkImage
Asynchronous image loading in SwiftUI
Stars: ✭ 39 (+178.57%)
Mutual labels:  placeholder
i3blocks-modules
Custom modules for i3blocks status bar
Stars: ✭ 36 (+157.14%)
Mutual labels:  placeholder
NSJTextField
A custom textfield with the placeholder displayed on top when text entered.
Stars: ✭ 30 (+114.29%)
Mutual labels:  placeholder
DPB
Dynamic Project Builder
Stars: ✭ 22 (+57.14%)
Mutual labels:  placeholder
placeholders
SVG-based placeholders in web components
Stars: ✭ 28 (+100%)
Mutual labels:  placeholder
lorem.space
✨✨✨πŸͺβœ¨βœ¨βœ¨  LOREM.SPACE ✨✨✨πŸͺβœ¨βœ¨βœ¨
Stars: ✭ 310 (+2114.29%)
Mutual labels:  placeholder
python-lorem
🐍 Python library for the generation of random text that looks like Latin
Stars: ✭ 19 (+35.71%)
Mutual labels:  placeholder
holder rails
Client side image placeholders for Rails applications
Stars: ✭ 47 (+235.71%)
Mutual labels:  placeholder
DevLorem
No more 'Lorem ipsum', get some real quotes or speeches for your free text with this generator!
Stars: ✭ 59 (+321.43%)
Mutual labels:  placeholder
react-input-hints
Get more out of your placeholders. Animates input placeholders to make it look like they are being typed in realtime - https://npmjs.com/react-input-hints
Stars: ✭ 56 (+300%)
Mutual labels:  placeholder
blurhash.cr
A pure Crystal implementation of BlurHash algorithm
Stars: ✭ 13 (-7.14%)
Mutual labels:  placeholder
TextInputLayout
The objective of this code is to guide you to create login screen with TextInputLayout in iOS app.
Stars: ✭ 30 (+114.29%)
Mutual labels:  placeholder

Intro

A higher-order component be use for add animation effects to the placeholder witch in react-hold.

[Demo] and [Source]

Install

npm i --save react-hold-animation

Usage

import React from 'react'
import { render } from 'react-dom'
import hold from 'react-hold'
import { Fill } from 'react-hold/holders'
import animation from 'react-hold-animation'

const H1 = hold('h1', (props) => !props.children)

class App extends React.Component {
  constructor(...args) {
    super(...args)
    this.state = {
      title: '',
    }
  }

  render() {
    return (
      <div>
        <H1 holder={animation(Fill)}>{ this.state.title }</H1>
      </div>
    )
  }
}

render(<App />, document.body)

More

import { Fill } from 'react-hold/holders'
import animation, { animate, BLINK, SPREAD, SLIDE } from 'react-hold-animation'

let AnimatedFill

// use decorator
AnimatedFill = animate(SLIDE)(Fill)

// use build-in animation mode
AnimatedFill = animation(Fill) // default SLIDE
AnimatedFill = animation(Fill, BLINK)
AnimatedFill = animation(Fill, SPREAD)

// cusmtom animation
AnimatedFill = animation(Fill, {
  name: BLINK, // or your css keyframe names
  delay: '0.1s',
  duration: '0.6s',
  direction: 'normal',
  timingFunction: 'ease',
  iterationCount: 'infinite',
})

License

MIT

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].