engremran07/gsmvault/alp-transitions-enter-leave

Claude Code and agent skill by engremran07/gsmvault

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Enter/leave transitions: x-transition. Use when: adding show/hide animations to x-show elements, dropdown open/close, modal appear/disappear, toast notifications.

Install

npx vskill@latest install engremran07/gsmvault/alp-transitions-enter-leave

SKILL.md

The same SKILL.md was published earlier as engremran07/gsmvault/alp-transitions-enter-leave.

Alpine Enter/Leave Transitions

When to Use

  • Animating elements that toggle visibility with x-show
  • Dropdown menus, modals, tooltips, notifications
  • Any element that appears/disappears and needs smooth animation

Patterns

Basic x-transition (Shorthand)
html
<div x-show="open" x-cloak x-transition>
Content fades and scales in/out automatically.
</div>
Custom Duration and Origin
html
<div x-show="open" x-cloak
x-transition.duration.200ms
x-transition.origin.top>
Dropdown content
</div>
Full Enter/Leave Control
html
<div x-show="open" x-cloak
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="opacity-0 -translate-y-2"
x-transition:enter-end="opacity-100 translate-y-0"
x-transition:leave="transition ease-in duration-150"
x-transition:leave-start="opacity-100 translate-y-0"
x-transition:leave-end="opacity-0 -translate-y-2">
Animated panel
</div>
Slide-In Sidebar
html
<aside x-show="$store.sidebar.open" x-cloak
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="-translate-x-full"
x-transition:enter-end="translate-x-0"
x-transition:leave="transition ease-in duration-200"
x-transition:leave-start="translate-x-0"
x-transition:leave-end="-translate-x-full"
class="fixed inset-y-0 left-0 w-64 z-40 bg-[var(--color-surface)]">
<!-- sidebar -->
</aside>
Fade-Only (No Scale)
html
<div x-show="visible" x-cloak
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
x-transition:leave="transition ease-in duration-200"
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0">
Fade content
</div>

Anti-Patterns

PatternProblemFix
CSS animate-* classes on x-show elementsAnimation overrides display:none, causes flickerUse x-transition exclusively
Missing x-cloakFlash of content before Alpine hides itAlways add x-cloak
x-transition on x-ifx-if removes from DOM, no leave animationUse x-show for animated toggle
Very long durations (>500ms)Feels sluggishKeep enter ≤300ms, leave ≤200ms

Red Flags

  • x-show + Tailwind animate-fade-in or animate-slide-up — use x-transition instead
  • Missing x-cloak on any x-show element
  • x-transition without x-show (does nothing)

Quality Gate

powershell
& .\.venv\Scripts\python.exe -m ruff check . --fix
& .\.venv\Scripts\python.exe -m ruff format .
& .\.venv\Scripts\python.exe manage.py check --settings=app.settings_dev

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/engremran07/gsmvault/alp-transitions-enter-leave/badge)](https://verified-skill.com/skills/engremran07/gsmvault/alp-transitions-enter-leave)

Something wrong with this skill or its page? Tell us.