mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 09:13:19 +01:00
content fadein
This commit is contained in:
parent
40ea740f40
commit
45129185cb
11
package.json
11
package.json
@ -3,20 +3,21 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"node-sass-chokidar": "^1.1.0",
|
||||
"node-sass-chokidar": "^1.2.0",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"react": "^16.2.0",
|
||||
"react-dom": "^16.2.0",
|
||||
"react-router-dom": "^4.2.2",
|
||||
"react-scripts": "1.1.1"
|
||||
"react-scripts": "1.1.1",
|
||||
"react-transition-group": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^8.2.2",
|
||||
"eslint": "^4.19.0",
|
||||
"eslint-plugin-react": "^7.7.0",
|
||||
"jest-cli": "^22.1.4",
|
||||
"stylelint": "^9.0.0",
|
||||
"stylelint-config-standard": "^18.1.0"
|
||||
"jest-cli": "^22.4.3",
|
||||
"stylelint": "^9.1.3",
|
||||
"stylelint-config-standard": "^18.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint:js": "eslint ./{src,public}/**/*.js",
|
||||
|
11
src/App.js
11
src/App.js
@ -1,12 +1,15 @@
|
||||
import React from 'react'
|
||||
import Header from './components/molecules/Header.js'
|
||||
import FadeIn from './components/atoms/FadeIn'
|
||||
import Routes from './Routes'
|
||||
|
||||
const App = () => (
|
||||
<div className="app">
|
||||
<Header />
|
||||
<Routes />
|
||||
</div>
|
||||
<FadeIn>
|
||||
<div className="app">
|
||||
<Header />
|
||||
<Routes />
|
||||
</div>
|
||||
</FadeIn>
|
||||
)
|
||||
|
||||
export default App
|
||||
|
14
src/components/atoms/FadeIn.js
Normal file
14
src/components/atoms/FadeIn.js
Normal file
@ -0,0 +1,14 @@
|
||||
import React from 'react'
|
||||
import { CSSTransition } from 'react-transition-group'
|
||||
import './FadeIn.css'
|
||||
|
||||
const FadeIn = (props) => (
|
||||
<CSSTransition
|
||||
{...props}
|
||||
classNames="fadein"
|
||||
appear={true}
|
||||
in={true}
|
||||
timeout={400} />
|
||||
)
|
||||
|
||||
export default FadeIn
|
8
src/components/atoms/FadeIn.scss
Normal file
8
src/components/atoms/FadeIn.scss
Normal file
@ -0,0 +1,8 @@
|
||||
.fadein-appear {
|
||||
opacity: .01;
|
||||
|
||||
&.fadein-appear-active {
|
||||
opacity: 1;
|
||||
transition: opacity 400ms ease-in;
|
||||
}
|
||||
}
|
@ -2,7 +2,10 @@ import React from 'react'
|
||||
|
||||
const Home = () => (
|
||||
<main className="screen screen--home">
|
||||
|
||||
<a href="https://kremalicious.com">Blog</a>
|
||||
<a href="https://github.com/kremalicious">GitHub</a>
|
||||
<a href="https://dribbble.com/kremalicious">Dribbble</a>
|
||||
<a href="https://twitter.com/kremalicious">Twitter</a>
|
||||
</main>
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user