diff --git a/package-lock.json b/package-lock.json index c5799ab..18b810c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "hackathonficha", "version": "0.1.0", + "license": "ISC", "dependencies": { "@react-spring/web": "^9.5.5", "@testing-library/jest-dom": "^5.17.0", @@ -31,7 +32,8 @@ "workbox-routing": "^6.6.0", "workbox-strategies": "^6.6.0", "workbox-streams": "^6.6.0" - } + }, + "devDependencies": {} }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", diff --git a/src/App.css b/src/App.css index e69de29..749895d 100644 --- a/src/App.css +++ b/src/App.css @@ -0,0 +1,10 @@ +.App { + position: relative; + opacity: 1; + transition: opacity 0.3s ease-in-out; + } + + .App.hidden { + opacity: 0; + pointer-events: none; + } \ No newline at end of file diff --git a/src/App.js b/src/App.js index ed57180..c5584fc 100644 --- a/src/App.js +++ b/src/App.js @@ -3,13 +3,19 @@ import Start from './components/Start/Start'; import Second from './components/Second/Second'; import Tinder from './components/Tinder/Tinder'; import Map from './components/Map/Map'; +import './App.css' function App() { const [buttonValue, setButtonValue] = useState(""); + const [isHidden, setIsHidden] = useState(false); const handleButtonValue = (value) => { - setButtonValue(value); + setIsHidden(true); + setTimeout(() => { + setIsHidden(false); + setButtonValue(value); + }, 300); }; let content = null; @@ -27,7 +33,7 @@ function App() { } return ( -