Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use magic css in react js

import React, { Component, PropTypes } from 'react';
import { StyleSheet, css } from 'aphrodite';
 
import { swap } from 'react-magic';
 
const styles = StyleSheet.create({
    magic: {
        animationName: swap,
        animationDuration: '1s'
    }
});
 
class App extends Component {
    render() {
        return (
            <div>
                <div className={css(styles.magic)}>
                    <h2>react-magic</h2>
                </div>
            </div>
        );
    }
}
 
export default App;
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #magic #css #react #js
ADD COMMENT
Topic
Name
8+3 =