santycss 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +381 -1
- package/dist/santy-animations.css +319 -9
- package/dist/santy-components.css +900 -680
- package/dist/santy-core.css +11335 -11335
- package/dist/santy-email.css +192 -0
- package/dist/santy.css +538 -8
- package/dist/santy.min.css +1 -1
- package/index.js +2 -0
- package/lib/animations.js +318 -8
- package/package.json +18 -15
|
@@ -40,16 +40,43 @@
|
|
|
40
40
|
.animation-fill-both { animation-fill-mode: both; }
|
|
41
41
|
|
|
42
42
|
/* ── Timing-function helpers ── */
|
|
43
|
-
.animation-ease
|
|
44
|
-
.animation-ease-in
|
|
45
|
-
.animation-ease-out
|
|
46
|
-
.animation-ease-in-out
|
|
47
|
-
.animation-linear
|
|
43
|
+
.animation-ease { animation-timing-function: ease; }
|
|
44
|
+
.animation-ease-in { animation-timing-function: ease-in; }
|
|
45
|
+
.animation-ease-out { animation-timing-function: ease-out; }
|
|
46
|
+
.animation-ease-in-out { animation-timing-function: ease-in-out; }
|
|
47
|
+
.animation-linear { animation-timing-function: linear; }
|
|
48
|
+
.animation-ease-bounce { animation-timing-function: cubic-bezier(0.34,1.56,0.64,1); }
|
|
49
|
+
.animation-ease-elastic { animation-timing-function: cubic-bezier(0.68,-0.55,0.265,1.55); }
|
|
50
|
+
.animation-ease-spring { animation-timing-function: cubic-bezier(0.175,0.885,0.32,1.275); }
|
|
51
|
+
|
|
52
|
+
/* ── Direction helpers ── */
|
|
53
|
+
.animation-direction-normal { animation-direction: normal; }
|
|
54
|
+
.animation-direction-reverse { animation-direction: reverse; }
|
|
55
|
+
.animation-direction-alternate { animation-direction: alternate; }
|
|
56
|
+
.animation-direction-alternate-reverse { animation-direction: alternate-reverse; }
|
|
57
|
+
|
|
58
|
+
/* ── Extra delay helpers ── */
|
|
59
|
+
.animation-delay-750 { animation-delay: 0.75s; }
|
|
60
|
+
.animation-delay-1250 { animation-delay: 1.25s; }
|
|
61
|
+
.animation-delay-1500 { animation-delay: 1.5s; }
|
|
62
|
+
.animation-delay-2500 { animation-delay: 2.5s; }
|
|
63
|
+
.animation-delay-3000 { animation-delay: 3s; }
|
|
64
|
+
.animation-delay-4000 { animation-delay: 4s; }
|
|
65
|
+
.animation-delay-5000 { animation-delay: 5s; }
|
|
66
|
+
|
|
67
|
+
/* ── Extra speed helpers ── */
|
|
68
|
+
.animation-speed-ultra-fast { animation-duration: 0.15s !important; }
|
|
69
|
+
|
|
70
|
+
/* ── Extra iteration helpers ── */
|
|
71
|
+
.animation-iteration-2 { animation-iteration-count: 2; }
|
|
72
|
+
.animation-iteration-4 { animation-iteration-count: 4; }
|
|
73
|
+
.animation-iteration-5 { animation-iteration-count: 5; }
|
|
48
74
|
|
|
49
75
|
/* ── Pause / play ── */
|
|
50
|
-
.animation-paused
|
|
51
|
-
.animation-running{ animation-play-state: running; }
|
|
52
|
-
.animation-none
|
|
76
|
+
.animation-paused { animation-play-state: paused; }
|
|
77
|
+
.animation-running { animation-play-state: running; }
|
|
78
|
+
.animation-none { animation: none; }
|
|
79
|
+
.animation-pause-on-hover:hover { animation-play-state: paused; }
|
|
53
80
|
|
|
54
81
|
/* ════════════════════════════════════════════════════
|
|
55
82
|
ATTENTION SEEKERS
|
|
@@ -516,4 +543,287 @@
|
|
|
516
543
|
to { opacity: 1; transform: scale(1); }
|
|
517
544
|
}
|
|
518
545
|
@keyframes santy-roll-in { from { opacity: 0; transform: translate3d(-100%,0,0) rotate3d(0,0,1,-120deg); } to { opacity: 1; transform: translate3d(0,0,0); } }
|
|
519
|
-
@keyframes santy-roll-out { from { opacity: 1; } to { opacity: 0; transform: translate3d(100%,0,0) rotate3d(0,0,1,120deg); } }
|
|
546
|
+
@keyframes santy-roll-out { from { opacity: 1; } to { opacity: 0; transform: translate3d(100%,0,0) rotate3d(0,0,1,120deg); } }
|
|
547
|
+
|
|
548
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
549
|
+
SCROLL-TRIGGERED ANIMATIONS
|
|
550
|
+
Uses Intersection Observer via tiny JS snippet OR animation-timeline.
|
|
551
|
+
Add class + JS observer, or use with animate-on-scroll-* pattern.
|
|
552
|
+
Pure CSS fallback: elements start invisible, JS adds .is-visible.
|
|
553
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
554
|
+
|
|
555
|
+
/* Base: elements are hidden until .is-visible is toggled by JS */
|
|
556
|
+
.animate-on-scroll-fade-in { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
557
|
+
.animate-on-scroll-slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
558
|
+
.animate-on-scroll-slide-down { opacity: 0; transform: translateY(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
559
|
+
.animate-on-scroll-zoom-in { opacity: 0; transform: scale(0.85); transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
560
|
+
.animate-on-scroll-from-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
561
|
+
.animate-on-scroll-from-right { opacity: 0; transform: translateX(60px); transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
562
|
+
.animate-on-scroll-flip-up { opacity: 0; transform: rotateX(30deg); transition: opacity 0.6s ease, transform 0.6s ease; }
|
|
563
|
+
|
|
564
|
+
/* Triggered state — add .is-visible via IntersectionObserver */
|
|
565
|
+
.animate-on-scroll-fade-in.is-visible,
|
|
566
|
+
.animate-on-scroll-slide-up.is-visible,
|
|
567
|
+
.animate-on-scroll-slide-down.is-visible,
|
|
568
|
+
.animate-on-scroll-zoom-in.is-visible,
|
|
569
|
+
.animate-on-scroll-from-left.is-visible,
|
|
570
|
+
.animate-on-scroll-from-right.is-visible,
|
|
571
|
+
.animate-on-scroll-flip-up.is-visible { opacity: 1; transform: none; }
|
|
572
|
+
|
|
573
|
+
/* scroll-reveal-once / scroll-reveal-repeat — same trigger, different JS behaviour */
|
|
574
|
+
.scroll-reveal-once,
|
|
575
|
+
.scroll-reveal-repeat { opacity: 0; transform: translateY(30px); transition: opacity 0.55s ease, transform 0.55s ease; }
|
|
576
|
+
.scroll-reveal-once.is-visible,
|
|
577
|
+
.scroll-reveal-repeat.is-visible { opacity: 1; transform: none; }
|
|
578
|
+
|
|
579
|
+
/* Delay modifiers for scroll reveals */
|
|
580
|
+
.scroll-reveal-delay-100 { transition-delay: 0.1s; }
|
|
581
|
+
.scroll-reveal-delay-200 { transition-delay: 0.2s; }
|
|
582
|
+
.scroll-reveal-delay-300 { transition-delay: 0.3s; }
|
|
583
|
+
.scroll-reveal-delay-400 { transition-delay: 0.4s; }
|
|
584
|
+
.scroll-reveal-delay-500 { transition-delay: 0.5s; }
|
|
585
|
+
|
|
586
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
587
|
+
HOVER-TRIGGERED ANIMATIONS
|
|
588
|
+
These override animation only on :hover so they fire on mouse-over.
|
|
589
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
590
|
+
.on-hover:animate-bounce:hover { animation: santy-bounce 0.8s ease both; }
|
|
591
|
+
.on-hover:animate-pulse:hover { animation: santy-pulse 1s ease both; }
|
|
592
|
+
.on-hover:animate-shake-x:hover { animation: santy-shake-x 0.6s ease both; }
|
|
593
|
+
.on-hover:animate-rubber-band:hover { animation: santy-rubber-band 0.8s ease both; }
|
|
594
|
+
.on-hover:animate-tada:hover { animation: santy-tada 0.8s ease both; }
|
|
595
|
+
.on-hover:animate-wobble:hover { animation: santy-wobble 0.8s ease both; }
|
|
596
|
+
.on-hover:animate-swing:hover { animation: santy-swing 0.8s ease both; transform-origin: top center; }
|
|
597
|
+
.on-hover:animate-heartbeat:hover { animation: santy-heartbeat 1s ease-in-out both; }
|
|
598
|
+
.on-hover:animate-spin-once:hover { animation: santy-spin 0.5s linear both; }
|
|
599
|
+
.on-hover:animate-flip-once:hover { animation: santy-flip-in-y 0.6s ease both; }
|
|
600
|
+
.on-hover:animate-jello:hover { animation: santy-jelly 0.9s ease both; }
|
|
601
|
+
.on-hover:animate-zoom-in:hover { animation: santy-zoom-in 0.3s ease both; }
|
|
602
|
+
.on-hover:animate-fade-in:hover { animation: santy-fade-in 0.4s ease both; }
|
|
603
|
+
|
|
604
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
605
|
+
TEXT ANIMATIONS
|
|
606
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
607
|
+
|
|
608
|
+
/* Typewriter — pure CSS using steps() */
|
|
609
|
+
.animate-typewriter {
|
|
610
|
+
overflow: hidden;
|
|
611
|
+
white-space: nowrap;
|
|
612
|
+
border-right: 2px solid currentColor;
|
|
613
|
+
width: 0;
|
|
614
|
+
animation: santy-typewriter 2.5s steps(30,end) forwards, santy-blink-caret 0.75s step-end infinite;
|
|
615
|
+
}
|
|
616
|
+
/* Blur-in entrance */
|
|
617
|
+
.animate-text-blur-in { animation: santy-text-blur-in 0.8s ease both; }
|
|
618
|
+
/* Slide up per-word (apply to the text container) */
|
|
619
|
+
.animate-text-slide-up { animation: santy-slide-up 0.5s ease both; }
|
|
620
|
+
/* Gradient flow — animated gradient on text */
|
|
621
|
+
.animate-text-gradient-flow {
|
|
622
|
+
background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
|
|
623
|
+
background-size: 300% 100%;
|
|
624
|
+
-webkit-background-clip: text;
|
|
625
|
+
background-clip: text;
|
|
626
|
+
-webkit-text-fill-color: transparent;
|
|
627
|
+
animation: santy-gradient-shift 3s linear infinite;
|
|
628
|
+
}
|
|
629
|
+
/* Letter wave — each letter must be wrapped in a span via JS */
|
|
630
|
+
.animate-text-wave span { display: inline-block; animation: santy-text-wave 1s ease infinite; }
|
|
631
|
+
.animate-text-wave span:nth-child(1) { animation-delay: 0s; }
|
|
632
|
+
.animate-text-wave span:nth-child(2) { animation-delay: 0.08s; }
|
|
633
|
+
.animate-text-wave span:nth-child(3) { animation-delay: 0.16s; }
|
|
634
|
+
.animate-text-wave span:nth-child(4) { animation-delay: 0.24s; }
|
|
635
|
+
.animate-text-wave span:nth-child(5) { animation-delay: 0.32s; }
|
|
636
|
+
.animate-text-wave span:nth-child(6) { animation-delay: 0.40s; }
|
|
637
|
+
.animate-text-wave span:nth-child(7) { animation-delay: 0.48s; }
|
|
638
|
+
.animate-text-wave span:nth-child(8) { animation-delay: 0.56s; }
|
|
639
|
+
/* Glitch */
|
|
640
|
+
.animate-text-glitch { animation: santy-text-glitch 0.5s linear infinite; }
|
|
641
|
+
/* Neon pulse */
|
|
642
|
+
.animate-text-neon-pulse { animation: santy-neon-pulse 1.5s ease-in-out infinite alternate; }
|
|
643
|
+
|
|
644
|
+
@keyframes santy-typewriter { to { width: 100%; } }
|
|
645
|
+
@keyframes santy-blink-caret { 50% { border-color: transparent; } }
|
|
646
|
+
@keyframes santy-text-blur-in { from { filter: blur(12px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
|
|
647
|
+
@keyframes santy-text-wave { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
|
|
648
|
+
@keyframes santy-text-glitch {
|
|
649
|
+
0%,100% { text-shadow: none; transform: none; }
|
|
650
|
+
20% { text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9; transform: skewX(-2deg); }
|
|
651
|
+
40% { text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9; transform: skewX(2deg); }
|
|
652
|
+
60% { text-shadow: -2px 0 #00fff9; transform: skewX(0deg); }
|
|
653
|
+
80% { text-shadow: 2px 0 #ff00c1; }
|
|
654
|
+
}
|
|
655
|
+
@keyframes santy-neon-pulse {
|
|
656
|
+
from { text-shadow: 0 0 4px currentColor, 0 0 10px currentColor; }
|
|
657
|
+
to { text-shadow: 0 0 8px currentColor, 0 0 20px currentColor, 0 0 40px currentColor; }
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
661
|
+
STAGGERED ENTRANCE SEQUENCES
|
|
662
|
+
Apply parent class; children get incremental delays via nth-child.
|
|
663
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
664
|
+
.animate-stagger-fade-in > * { animation: santy-fade-in 0.5s ease both; }
|
|
665
|
+
.animate-stagger-slide-up > * { animation: santy-slide-up 0.5s ease both; }
|
|
666
|
+
.animate-stagger-zoom-in > * { animation: santy-zoom-in 0.4s ease both; }
|
|
667
|
+
.animate-stagger-from-left > * { animation: santy-fade-in-from-left 0.5s ease both; }
|
|
668
|
+
.animate-stagger-from-right > * { animation: santy-fade-in-from-right 0.5s ease both; }
|
|
669
|
+
|
|
670
|
+
/* Delay each child — 100ms steps */
|
|
671
|
+
.animate-stagger-children-100 > *:nth-child(1) { animation-delay: 0.0s; }
|
|
672
|
+
.animate-stagger-children-100 > *:nth-child(2) { animation-delay: 0.1s; }
|
|
673
|
+
.animate-stagger-children-100 > *:nth-child(3) { animation-delay: 0.2s; }
|
|
674
|
+
.animate-stagger-children-100 > *:nth-child(4) { animation-delay: 0.3s; }
|
|
675
|
+
.animate-stagger-children-100 > *:nth-child(5) { animation-delay: 0.4s; }
|
|
676
|
+
.animate-stagger-children-100 > *:nth-child(6) { animation-delay: 0.5s; }
|
|
677
|
+
.animate-stagger-children-100 > *:nth-child(7) { animation-delay: 0.6s; }
|
|
678
|
+
.animate-stagger-children-100 > *:nth-child(8) { animation-delay: 0.7s; }
|
|
679
|
+
.animate-stagger-children-100 > *:nth-child(9) { animation-delay: 0.8s; }
|
|
680
|
+
.animate-stagger-children-100 > *:nth-child(10) { animation-delay: 0.9s; }
|
|
681
|
+
/* 200ms steps */
|
|
682
|
+
.animate-stagger-children-200 > *:nth-child(1) { animation-delay: 0.0s; }
|
|
683
|
+
.animate-stagger-children-200 > *:nth-child(2) { animation-delay: 0.2s; }
|
|
684
|
+
.animate-stagger-children-200 > *:nth-child(3) { animation-delay: 0.4s; }
|
|
685
|
+
.animate-stagger-children-200 > *:nth-child(4) { animation-delay: 0.6s; }
|
|
686
|
+
.animate-stagger-children-200 > *:nth-child(5) { animation-delay: 0.8s; }
|
|
687
|
+
.animate-stagger-children-200 > *:nth-child(6) { animation-delay: 1.0s; }
|
|
688
|
+
.animate-stagger-children-200 > *:nth-child(7) { animation-delay: 1.2s; }
|
|
689
|
+
.animate-stagger-children-200 > *:nth-child(8) { animation-delay: 1.4s; }
|
|
690
|
+
/* 300ms steps */
|
|
691
|
+
.animate-stagger-children-300 > *:nth-child(1) { animation-delay: 0.0s; }
|
|
692
|
+
.animate-stagger-children-300 > *:nth-child(2) { animation-delay: 0.3s; }
|
|
693
|
+
.animate-stagger-children-300 > *:nth-child(3) { animation-delay: 0.6s; }
|
|
694
|
+
.animate-stagger-children-300 > *:nth-child(4) { animation-delay: 0.9s; }
|
|
695
|
+
.animate-stagger-children-300 > *:nth-child(5) { animation-delay: 1.2s; }
|
|
696
|
+
.animate-stagger-children-300 > *:nth-child(6) { animation-delay: 1.5s; }
|
|
697
|
+
|
|
698
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
699
|
+
MORPHING & SHAPE ANIMATIONS
|
|
700
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
701
|
+
.animate-morph-blob { animation: santy-morph-blob 6s ease-in-out infinite; }
|
|
702
|
+
.animate-border-spin { animation: santy-border-spin 2s linear infinite; background: conic-gradient(from 0deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6); }
|
|
703
|
+
.animate-shimmer { overflow: hidden; position: relative; background: #f0f0f0; }
|
|
704
|
+
.animate-shimmer::after {
|
|
705
|
+
content: '';
|
|
706
|
+
position: absolute;
|
|
707
|
+
inset: 0;
|
|
708
|
+
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
|
|
709
|
+
animation: santy-shimmer 1.5s ease-in-out infinite;
|
|
710
|
+
}
|
|
711
|
+
.animate-gradient-shift { background-size: 200% 200%; animation: santy-gradient-shift 3s ease infinite; }
|
|
712
|
+
.animate-morph-circle-to-square { animation: santy-morph-circle-to-square 1.5s ease-in-out infinite alternate; }
|
|
713
|
+
.animate-liquid { animation: santy-liquid 3s ease-in-out infinite; }
|
|
714
|
+
|
|
715
|
+
@keyframes santy-morph-blob {
|
|
716
|
+
0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
|
|
717
|
+
25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
|
|
718
|
+
50% { border-radius: 50% 60% 30% 60% / 40% 50% 60% 50%; }
|
|
719
|
+
75% { border-radius: 40% 70% 60% 30% / 60% 40% 50% 70%; }
|
|
720
|
+
}
|
|
721
|
+
@keyframes santy-border-spin { to { transform: rotate(360deg); } }
|
|
722
|
+
@keyframes santy-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
|
|
723
|
+
@keyframes santy-gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
|
|
724
|
+
@keyframes santy-morph-circle-to-square { from { border-radius: 50%; } to { border-radius: 0%; } }
|
|
725
|
+
@keyframes santy-liquid {
|
|
726
|
+
0%,100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; transform: rotate(0deg); }
|
|
727
|
+
50% { border-radius: 60% 40% 30% 70% / 40% 60% 30% 60%; transform: rotate(5deg); }
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
731
|
+
3D ANIMATIONS
|
|
732
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
733
|
+
.animate-flip-3d-x { animation: santy-flip-3d-x 0.7s ease both; }
|
|
734
|
+
.animate-flip-3d-y { animation: santy-flip-3d-y 0.7s ease both; }
|
|
735
|
+
.animate-rotate-3d { animation: santy-rotate-3d 1.2s linear infinite; }
|
|
736
|
+
.animate-tilt-left { animation: santy-tilt-left 0.4s ease both; }
|
|
737
|
+
.animate-tilt-right { animation: santy-tilt-right 0.4s ease both; }
|
|
738
|
+
.animate-depth-in { animation: santy-depth-in 0.5s ease both; }
|
|
739
|
+
.animate-depth-out { animation: santy-depth-out 0.5s ease both; }
|
|
740
|
+
.animate-swing-3d { animation: santy-swing-3d 1s ease-in-out infinite; transform-origin: top center; perspective: 400px; }
|
|
741
|
+
|
|
742
|
+
@keyframes santy-flip-3d-x { from { transform: perspective(400px) rotateX(90deg); opacity: 0; } to { transform: perspective(400px) rotateX(0deg); opacity: 1; } }
|
|
743
|
+
@keyframes santy-flip-3d-y { from { transform: perspective(400px) rotateY(90deg); opacity: 0; } to { transform: perspective(400px) rotateY(0deg); opacity: 1; } }
|
|
744
|
+
@keyframes santy-rotate-3d { from { transform: perspective(400px) rotate3d(1,1,0,0deg); } to { transform: perspective(400px) rotate3d(1,1,0,360deg); } }
|
|
745
|
+
@keyframes santy-tilt-left { from { transform: rotate(0deg); } to { transform: rotate(-6deg); } }
|
|
746
|
+
@keyframes santy-tilt-right { from { transform: rotate(0deg); } to { transform: rotate(6deg); } }
|
|
747
|
+
@keyframes santy-depth-in { from { transform: perspective(600px) translateZ(-80px); opacity: 0; } to { transform: perspective(600px) translateZ(0); opacity: 1; } }
|
|
748
|
+
@keyframes santy-depth-out { from { transform: perspective(600px) translateZ(0); opacity: 1; } to { transform: perspective(600px) translateZ(-80px); opacity: 0; } }
|
|
749
|
+
@keyframes santy-swing-3d {
|
|
750
|
+
0%,100% { transform: perspective(400px) rotateY(0deg); }
|
|
751
|
+
25% { transform: perspective(400px) rotateY(15deg); }
|
|
752
|
+
75% { transform: perspective(400px) rotateY(-15deg); }
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
756
|
+
EXIT + PAGE TRANSITION ANIMATIONS
|
|
757
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
758
|
+
.animate-exit-fade-out { animation: santy-fade-out 0.4s ease both; }
|
|
759
|
+
.animate-exit-slide-left { animation: santy-exit-slide-left 0.4s ease both; }
|
|
760
|
+
.animate-exit-slide-right { animation: santy-exit-slide-right 0.4s ease both; }
|
|
761
|
+
.animate-exit-scale-down { animation: santy-exit-scale-down 0.35s ease both; }
|
|
762
|
+
.animate-exit-flip-out { animation: santy-flip-out 0.5s ease both; }
|
|
763
|
+
.animate-page-in-from-right { animation: santy-page-in-right 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
764
|
+
.animate-page-in-from-left { animation: santy-page-in-left 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
765
|
+
.animate-page-out-to-left { animation: santy-page-out-left 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
766
|
+
.animate-page-out-to-right { animation: santy-page-out-right 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
767
|
+
|
|
768
|
+
@keyframes santy-exit-slide-left { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-60px); } }
|
|
769
|
+
@keyframes santy-exit-slide-right { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(60px); } }
|
|
770
|
+
@keyframes santy-exit-scale-down { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.85); } }
|
|
771
|
+
@keyframes santy-page-in-right { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
|
|
772
|
+
@keyframes santy-page-in-left { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
|
|
773
|
+
@keyframes santy-page-out-left { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-100%); } }
|
|
774
|
+
@keyframes santy-page-out-right { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
|
|
775
|
+
|
|
776
|
+
/* View Transitions API */
|
|
777
|
+
.view-transition-fade { view-transition-name: fade-transition; }
|
|
778
|
+
.view-transition-slide { view-transition-name: slide-transition; }
|
|
779
|
+
@keyframes santy-vt-fade-in { from { opacity: 0; } }
|
|
780
|
+
@keyframes santy-vt-fade-out { to { opacity: 0; } }
|
|
781
|
+
::view-transition-old(fade-transition) { animation: santy-vt-fade-out 0.3s ease; }
|
|
782
|
+
::view-transition-new(fade-transition) { animation: santy-vt-fade-in 0.3s ease; }
|
|
783
|
+
::view-transition-old(slide-transition) { animation: santy-page-out-left 0.35s ease; }
|
|
784
|
+
::view-transition-new(slide-transition) { animation: santy-page-in-right 0.35s ease; }
|
|
785
|
+
|
|
786
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
787
|
+
NOTIFICATION & UI FEEDBACK ANIMATIONS
|
|
788
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
789
|
+
.animate-toast-in { animation: santy-toast-in 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
790
|
+
.animate-toast-out { animation: santy-toast-out 0.3s ease both; }
|
|
791
|
+
.animate-modal-in { animation: santy-modal-in 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
|
|
792
|
+
.animate-modal-out { animation: santy-modal-out 0.25s ease both; }
|
|
793
|
+
.animate-drawer-in-right { animation: santy-drawer-in-right 0.35s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
794
|
+
.animate-drawer-out-right { animation: santy-drawer-out-right 0.3s ease both; }
|
|
795
|
+
.animate-drawer-in-bottom { animation: santy-drawer-in-bottom 0.35s cubic-bezier(0.25,0.46,0.45,0.94) both; }
|
|
796
|
+
.animate-dropdown-in { animation: santy-dropdown-in 0.2s cubic-bezier(0.34,1.56,0.64,1) both; transform-origin: top center; }
|
|
797
|
+
.animate-dropdown-out { animation: santy-dropdown-out 0.15s ease both; transform-origin: top center; }
|
|
798
|
+
.animate-tooltip-in { animation: santy-zoom-in 0.15s ease both; }
|
|
799
|
+
.animate-badge-pop { animation: santy-badge-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }
|
|
800
|
+
.animate-success-checkmark { animation: santy-checkmark 0.6s ease both; stroke-dasharray: 50; stroke-dashoffset: 50; }
|
|
801
|
+
.animate-error-shake { animation: santy-shake-x 0.5s ease both; }
|
|
802
|
+
|
|
803
|
+
@keyframes santy-toast-in { from { opacity: 0; transform: translateY(100%) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
|
|
804
|
+
@keyframes santy-toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }
|
|
805
|
+
@keyframes santy-modal-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
|
|
806
|
+
@keyframes santy-modal-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.9); } }
|
|
807
|
+
@keyframes santy-drawer-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
|
|
808
|
+
@keyframes santy-drawer-out-right { from { transform: translateX(0); } to { transform: translateX(100%); } }
|
|
809
|
+
@keyframes santy-drawer-in-bottom { from { transform: translateY(100%); } to { transform: translateY(0); } }
|
|
810
|
+
@keyframes santy-dropdown-in { from { opacity: 0; transform: scaleY(0.8); } to { opacity: 1; transform: scaleY(1); } }
|
|
811
|
+
@keyframes santy-dropdown-out { from { opacity: 1; transform: scaleY(1); } to { opacity: 0; transform: scaleY(0.8); } }
|
|
812
|
+
@keyframes santy-badge-pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
|
|
813
|
+
@keyframes santy-checkmark { to { stroke-dashoffset: 0; } }
|
|
814
|
+
|
|
815
|
+
/* ── Scroll-reveal observer snippet (embed in your HTML) ── */
|
|
816
|
+
/* <script>
|
|
817
|
+
new IntersectionObserver((entries) => {
|
|
818
|
+
entries.forEach(e => {
|
|
819
|
+
if(e.isIntersecting) {
|
|
820
|
+
e.target.classList.add('is-visible');
|
|
821
|
+
if(e.target.classList.contains('scroll-reveal-once'))
|
|
822
|
+
observer.unobserve(e.target);
|
|
823
|
+
} else {
|
|
824
|
+
if(e.target.classList.contains('scroll-reveal-repeat'))
|
|
825
|
+
e.target.classList.remove('is-visible');
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
}, { threshold: 0.15 }).observe(...document.querySelectorAll('[class*="animate-on-scroll"],[class*="scroll-reveal"]'));
|
|
829
|
+
</script> */
|