{
  "id": "fade-in-on-scroll",
  "name": "Fade In on Scroll",
  "category": "effects",
  "tags": [
    "scroll-driven",
    "reveal",
    "view timeline",
    "fade up",
    "animate on scroll",
    "aos"
  ],
  "description": "Items fade and slide up as they scroll into view, with animation-timeline: view() instead of a scroll library.",
  "url": "https://copy-css.com/snippets/fade-in-on-scroll",
  "markdown": "https://copy-css.com/snippets/fade-in-on-scroll.md",
  "html": "<ul class=\"scroll-reveal\">\n  <li>Plan</li>\n  <li>Design</li>\n  <li>Build</li>\n  <li>Launch</li>\n</ul>",
  "css": ".scroll-reveal {\n  display: grid;\n  gap: 16px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  font-family: system-ui, sans-serif;\n}\n\n.scroll-reveal li {\n  padding: 22px;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 6px 18px -10px rgba(20, 83, 45, 0.35);\n  color: #14532d;\n  font-size: 18px;\n  font-weight: 700;\n}\n\n@supports (animation-timeline: view()) {\n  .scroll-reveal li {\n    animation: scroll-reveal-in linear both;\n    animation-timeline: view();\n    animation-range: entry 0% cover 30%;\n  }\n}\n\n@keyframes scroll-reveal-in {\n  from {\n    opacity: 0;\n    transform: translateY(40px) scale(0.96);\n  }\n\n  to {\n    opacity: 1;\n    transform: none;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .scroll-reveal li {\n    animation: none;\n  }\n}",
  "features": [
    "scroll-driven animations",
    "keyframe animations",
    "transforms",
    "box shadows",
    "CSS Grid",
    "reduced-motion support"
  ],
  "customProperties": []
}
