Live Preview

Library Sections

Navbar Reveal

Compact nav that clarifies on scroll intent.

Compact nav that clarifies on scroll intent.将本资源作为视觉与交互简报使用。把 Prompt 复制到 AI 编程工具,再按你的产品调整布局、品牌语气与动效强度。

Back to Library

Then paste it into your favorite AI coding tool.

Details

Type
Sections
Category
Navigation
Style
Minimal
Tech stack
CSS
Animation
Scroll
Difficulty
Beginner
License
Personal
Access
Free
Views
231
  • Scroll
  • CSS
  • JavaScript

Copy. Paste. Create.

This prompt is engineered to communicate visual direction, layout, interaction, animation and technical requirements.

Design a sparse sticky navbar with scroll state. Dark theme, one accent CTA.

Code

<!-- HTML -->
<p class="line" id="line"><span>Reveal</span></p>

/* CSS */
body{display:grid;place-items:center}.line{margin:0;font:700 clamp(2rem,7vw,3.5rem)/1 system-ui;letter-spacing:-.05em;overflow:hidden}.line span{display:inline-block;transform:translateY(110%);animation:up 1.1s cubic-bezier(.22,1,.36,1) .15s forwards;color:#f5f5f5}@keyframes up{to{transform:translateY(0)}}

// JS
var el=document.getElementById("line");setInterval(function(){var s=el.querySelector("span");s.style.animation="none";void s.offsetWidth;s.style.animation=""} ,3200);

Installation

Copy the prompt into your AI coding tool, then adapt colors and type to your brand.

License: Personal