All Projects → AlbertLucianto → react-transition-box

AlbertLucianto / react-transition-box

Licence: MIT License
React component for easily transitioning your container size based on children 🎁

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-transition-box

animated
🌊 Implicit animations for JavaFX.
Stars: ✭ 79 (+507.69%)
Mutual labels:  transition
Ease-Transitions-System
Unity system to easily test and apply ease transitions/tweens to component values
Stars: ✭ 31 (+138.46%)
Mutual labels:  transition
angular-super-gallery
AngularJS super image gallery
Stars: ✭ 46 (+253.85%)
Mutual labels:  transition
MusicPlayer
Android music player example.
Stars: ✭ 20 (+53.85%)
Mutual labels:  layout-animation
BrushEffect
This is a simple animation effect for any android view.
Stars: ✭ 23 (+76.92%)
Mutual labels:  layout-animation
vue-resize-split-pane
Splittable and resizable panes for Vue.js
Stars: ✭ 54 (+315.38%)
Mutual labels:  ui-component
vue-router-view-transition
Properly time out-in transitions with scrollBehavior
Stars: ✭ 38 (+192.31%)
Mutual labels:  transition
fast-ui
🌈 A UI component library based on vue 3.x (Migrated to Kabutack)
Stars: ✭ 17 (+30.77%)
Mutual labels:  ui-component
react-layout-transition
Trying to make layout transitions simple
Stars: ✭ 57 (+338.46%)
Mutual labels:  transition
flip.js
Mobile first, flat style JavaScript Page Flip Library
Stars: ✭ 26 (+100%)
Mutual labels:  transition
SHTransition
SHTransition is a simple library for viewcontroller transition animation in swift.
Stars: ✭ 35 (+169.23%)
Mutual labels:  transition
django-logic
Django Logic - easy way to implement state-based business logic with pure functions
Stars: ✭ 44 (+238.46%)
Mutual labels:  transition
column-text-view-ui
📄 Column Text View is an adaptive UI component that renders text in columns, horizontally [iOS 12, UIKit, TextKit, SwiftUI].
Stars: ✭ 11 (-15.38%)
Mutual labels:  ui-component
drawer
A touch-enabled drawer component for the modern web.
Stars: ✭ 26 (+100%)
Mutual labels:  ui-component
vue2-animate
A port of Animate.css for use with transitions in Vue.js 2.0 / 3.0 and Alpine.js.
Stars: ✭ 1,338 (+10192.31%)
Mutual labels:  transition
DNZ.MvcComponents
A set of useful UI-Components (HtmlHelper) for ASP.NET Core MVC based-on Popular JavaScript Plugins (Experimental project).
Stars: ✭ 25 (+92.31%)
Mutual labels:  ui-component
vue-collapse-transition
Custom Vue transition to collapse elements horizontally or vertically. Works with both fixed and 'auto' width or height.
Stars: ✭ 72 (+453.85%)
Mutual labels:  transition
unity-ui-manager
🎫 A Simple UI Manager for rapid prototyping and ease of collaboration
Stars: ✭ 44 (+238.46%)
Mutual labels:  transition
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+19246.15%)
Mutual labels:  transition
AniX
🐿 Super easy and lightweight(<3kb) JavaScript animation library
Stars: ✭ 253 (+1846.15%)
Mutual labels:  transition

React Transition Box

React component for easily transitioning your container size based on children 🎁

Implemented using React Hooks and make use of
HTMLObjectElement for listening to your component resize ↔️ ↕️ events

Build Status Downloads Downloads Version License License

React Transition Box

See working example here.

Installation

$ yarn add react-transition-box # or using npm

Usage

import React from 'react';
import TransitionBox from 'react-transition-box';
import LargeContent from './LargeContent';
import SmallContent from './SmallContent';

export default function App({ isLarge }) {
  return (
    <TransitionBox duration={500}>
      {isLarge ? <LargeContent /> : <SmallContent />}
    </TransitionBox>
  );
}

API

<TransitionBox> component accepts these following props:

Name Description Type
duration Transition duration in ms. number
timingFunction? Transition timing function. Default: 'ease' string
children Its size changes will trigger the container transition. Node or string
...others Other valid attributes to be added to the root div. any

License

react-transition-box is available under the MIT License.

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