Spaces:
Running

startupspark / style.css
Nauman09's picture
and some scrolling and hovering animation
914d7bc verified
Raw History Blame Contribute Delete
2.21 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
:root {
--primary-color: #ef4444; /* red-500 */
--secondary-color: #f97316; /* orange-500 */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
overflow-x: hidden;
}
/* Scroll Animation */
.scroll-animate {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.animate {
opacity: 1;
transform: translateY(0);
}
/* Hover Animation */
.hover-lift {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
transform: translateY(-10px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Hero Animation */
.hero-animation {
background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
animation: pulse 4s infinite ease-in-out;
}
@keyframes pulse {
0% {
transform: scale(1);
opacity: 0.7;
}
50% {
transform: scale(1.05);
opacity: 0.9;
}
100% {
transform: scale(1);
opacity: 0.7;
}
}
/* Animations */
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.animate-fade-in-down {
animation: fadeInDown 1s ease-out;
}
.animate-fade-in-up {
animation: fadeInUp 1s ease-out;
}
.animate-fade-in {
animation: fadeIn 1s ease-out;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary-color);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.hero-animation {
display: none;
}
.animate-fade-in-down,
.animate-fade-in-up,
.animate-fade-in {
animation: none;
}
}