From 153365ae9d2460fc641f2d85b6d87414f2f9363a Mon Sep 17 00:00:00 2001 From: Damini Chachane <119414762+Damini2004@users.noreply.github.com> Date: Sat, 13 Jul 2024 17:56:31 +0530 Subject: [PATCH] Animation added to the image (#496) * Commit 1 * Commit 2 * Commit-3 --- package-lock.json | 29 ++++--------------- .../HomepageFeatures/styles.module.css | 15 ++++++++++ 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index e1daeeb00..184d5d0d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { - "name": "new", - "version": "0.0.0", + "name": "30-days-cpp", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "new", - "version": "0.0.0", + "name": "30-days-cpp", + "version": "1.0.0", + "license": "MIT", "dependencies": { "@docusaurus/core": "3.4.0", "@docusaurus/preset-classic": "3.4.0", - "@docusaurus/theme-search-algolia": "^3.4.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", "prism-react-renderer": "^2.3.0", @@ -12542,12 +12542,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/search-insights": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.14.0.tgz", - "integrity": "sha512-OLN6MsPMCghDOqlCtsIsYgtsC0pnwVTyT9Mu6A3ewOj1DxvzZF6COrn2g86E/c05xbktB0XN04m/t1Z+n+fTGw==", - "peer": true - }, "node_modules/section-matter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", @@ -13509,19 +13503,6 @@ "is-typedarray": "^1.0.0" } }, - "node_modules/typescript": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz", - "integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==", - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index b248eb2e5..dd4ab61d9 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -3,9 +3,24 @@ align-items: center; padding: 2rem 0; width: 100%; + } .featureSvg { height: 200px; width: 200px; + transform: translateX(0px); + animation: float 6s ease-out infinite; } + +@keyframes float { + 0%{ + transform: translateY(0px); + } + 50%{ + transform: translateY(-15px); + } + 100%{ + transform: translateY(0px); + } +} \ No newline at end of file