Comments (5)
😑 ... Don't know why that hadn't occurred to me - cheers all! 👍
from react-animations.
Any thoughts on this? Would a PR from me help move this along?
from react-animations.
Weird question -- can't someone just do:
import * as animations from 'react-animations';
At least in the babel world transpiling, something like:
// src/mod.js
export const foo = "foo";
export const bar = "bar";
export const num = 42;
// src/index.js
import * as mod from "./mod";
Object.keys(mod).forEach((key) => {
console.log("TODO HERE", key, mod[key]);
});
when transpiled and run produces output like:
$ node lib/index.js
TODO HERE foo foo
TODO HERE bar bar
TODO HERE num 42
/cc @mattcubitt
from react-animations.
Hi @joshfarrant yes you can use:
import * as animations from 'react-animations';
I think this would be a better solution than maintaining a list of animations on the default export.
from react-animations.
I agree that import *
is the right way to do this, since conceptually there isn't any default export for react-animations
from react-animations.
Related Issues (20)
- Event Callback When Animation Finished HOT 4
- when hide or remove element, animatations not work HOT 3
- Fade in -> Fade out Animation HOT 1
- I use the slideInDown like this, but it doesn't work, it's seemly all the animation about slide is not work in this way.
- Animation Delay? HOT 1
- How do i trigger an animation based on a click event ?
- How do i trigger an animation based on a click event ? HOT 1
- [Question] How to set loop infinite HOT 1
- Animation not repeat when prop changed HOT 4
- Still not support TypeScript HOT 1
- Reset Animation
- Repository does not have an open source license. HOT 2
- fade in from black
- component enter/exit control?
- Could not find a declaration file for module 'react-animations/lib/fade-in'. HOT 1
- Usability with typescript HOT 1
- JSS example in documentation is buggy
- 404 Not Found - GET https://registry.npmjs.org/@types%2freact-animations HOT 1
- How to install the package for react app??? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-animations.