From eb6c251eb98a16a0ddd4f3901bfeb97626704c86 Mon Sep 17 00:00:00 2001 From: blake Date: Mon, 20 Oct 2025 14:23:07 -0500 Subject: [PATCH] Added basic scroll animations --- css/style.css | 33 ++++++++++++++++++++++++++++++++- ecommerce.html | 10 +++++----- index.html | 23 ++++++++++++----------- script.js | 18 ++++++++++++++++++ support.html | 8 ++++---- web-design.html | 8 ++++---- web-development.html | 8 ++++---- 7 files changed, 79 insertions(+), 29 deletions(-) diff --git a/css/style.css b/css/style.css index 802b7b5..c477622 100644 --- a/css/style.css +++ b/css/style.css @@ -227,6 +227,7 @@ p { width: 15rem; } +/* Element styles */ .hero-section { margin-bottom: 30rem; height: 100vh; @@ -273,7 +274,7 @@ p { border: 3px solid #2d54c7; border-radius: 20px; padding: 5rem; - transition: all 0.3s; + transition: transform 0.3s; height: 100%; width: 100%; } @@ -636,3 +637,33 @@ p { .yellow-border:hover { box-shadow: 0 1rem 1rem 0 #ffe642 !important; } + +/* Animations */ + +.animate-on-scroll { + opacity: 0; + transform: translateY(3rem); + transition-property: opacity, transform; + transition-duration: 0.5s; + transition-timing-function: ease; + transition-delay: 0s; +} + +.animate-on-scroll.visible { + opacity: 1; + transform: translateY(0); +} + +.animate-on-scroll-delay { + opacity: 0; + transform: translateY(3rem); + transition-property: opacity, transform; + transition-duration: 0.5s; + transition-timing-function: ease; + transition-delay: 0.2s; +} + +.animate-on-scroll-delay.visible { + opacity: 1; + transform: translateY(0); +} diff --git a/ecommerce.html b/ecommerce.html index fe223d9..98f6e9d 100644 --- a/ecommerce.html +++ b/ecommerce.html @@ -142,7 +142,7 @@
-
+

Contact Me

-

+

Let’s connect! Whether you have a quick question, need a custom quote, or just want to discuss ideas, feel free to reach out. Drop me a message through the form, email, or phone, and I’ll get back to you promptly so we can start building something great together.

-
+
rocket taking off
Send Message
-