Train Station Exit
A tiny train arrives at a peaceful station. The user character waves goodbye, boards the train, the conductor blows a whistle, the train slowly departs into a sunset, and the login screen fades in.
Train Station Exit
by FreeCsStyles Dev's
AnimatedCinematic
🌐HTML/CSS🎨Tailwind⚛️React💚Vue🅰️Angular🔥Svelte☁️LWC
#train#station#exit#logout#sunset#departure#goodbye#cinematic
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/train-station-exit.
<iframe src="/embed/train-station-exit" sandbox="allow-scripts" loading="lazy" title="Train Station Exit" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Train Station Exit, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="btn-station"><span class="btn-text">Log Out</span></button>CSS
.btn-station{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#374151,#4b5563);color:#fff;font-size:15px;font-weight:700;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;font-family:system-ui,sans-serif;box-shadow:0 4px 20px rgba(55,65,81,.35)}.btn-station:hover{transform:scale(1.05)}.btn-station:active{transform:scale(.94)}.btn-text{position:relative;z-index:5}Tailwind CSS
<button class="w-56 h-[60px] rounded-2xl font-bold cursor-pointer border-none overflow-hidden bg-gradient-to-br from-gray-600 to-gray-500 text-white shadow-lg hover:scale-105 active:scale-95 transition-all"><span class="relative z-10">Log Out</span></button>React
import { useState } from 'react';
import { motion } from 'framer-motion';
export function TrainStationExit() {
const [phase, setPhase] = useState('idle');
const trigger = () => { if (phase !== 'idle') return; const seq = [['trainArrive',0],['doorsOpen',600],['board',1000],['conductorWave',1400],['whistle',1800],['trainLeave',2200],['sunset',2800],['goodbye',3200],['fadeOut',3600],['idle',4800]]; seq.forEach(([p,t]) => setTimeout(() => setPhase(p), t)); };
return (<motion.button onClick={trigger} style={{width:224,height:60,borderRadius:16,border:'none',background:phase==='sunset'?'linear-gradient(135deg,#7c2d12,#b45309)':'linear-gradient(135deg,#374151,#4b5563)',color:'#fff',fontSize:15,fontWeight:'bold',cursor:'pointer',fontFamily:'system-ui'}}><span>{phase==='goodbye'?'Goodbye!':'Log Out'}</span></motion.button>);
}Vue
<template>
<button class="btn-station" @click="trigger">
<span class="btn-text">{{ label }}</span>
</button>
</template>
<script setup>
import { ref, computed } from 'vue';
const phase = ref('idle');
const label = computed(() => ({idle:'Log Out',goodbye:'Goodbye!'}[phase.value] || 'Departing...'));
function trigger() { if (phase.value !== 'idle') return; const seq = [['trainArrive',0],['doorsOpen',600],['board',1000],['whistle',1800],['trainLeave',2200],['sunset',2800],['goodbye',3200],['fadeOut',3600],['idle',4800]]; seq.forEach(([p,t]) => setTimeout(() => phase.value = p, t)); }
</script>Svelte
<script>
let phase = 'idle';
$: label = ({idle:'Log Out',goodbye:'Goodbye!'})[phase] || 'Departing...';
function trigger() { if (phase !== 'idle') return; const seq = [['trainArrive',0],['doorsOpen',600],['board',1000],['whistle',1800],['trainLeave',2200],['sunset',2800],['goodbye',3200],['fadeOut',3600],['idle',4800]]; seq.forEach(([p,t]) => setTimeout(() => phase = p, t)); }
</script>
<button on:click={trigger}><span>{label}</span></button>Angular
import { Component } from '@angular/core';
@Component({selector:'app-train-station-exit',template:`<button class="btn-station" (click)="trigger()"><span>{{label}}</span></button>`,styles:[`.btn-station{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#374151,#4b5563);color:#fff;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:system-ui}`]})
export class TrainStationExitComponent { phase='idle'; get label() { return this.phase==='goodbye'?'Goodbye!':'Log Out'; } trigger() { if(this.phase!=='idle')return; const seq=[['trainArrive',0],['doorsOpen',600],['board',1000],['whistle',1800],['trainLeave',2200],['sunset',2800],['goodbye',3200],['fadeOut',3600],['idle',4800]]; seq.forEach(([p,t])=>setTimeout(()=>this.phase=p,t)); } }LWC — HTML template
<template><button onclick={trigger}><span>{label}</span></button></template>LWC — JavaScript
import { LightningElement } from 'lwc';
export default class TrainStationExit extends LightningElement { phase='idle'; get label() { return this.phase==='goodbye'?'Goodbye!':'Log Out'; } trigger() { if(this.phase!=='idle')return; const seq=[['trainArrive',0],['doorsOpen',600],['board',1000],['whistle',1800],['trainLeave',2200],['sunset',2800],['goodbye',3200],['fadeOut',3600],['idle',4800]]; seq.forEach(([p,t])=>setTimeout(()=>{this.phase=p;},t)); } }LWC — CSS
.btn-station{width:224px;height:60px;border-radius:16px;border:none;background:linear-gradient(135deg,#374151,#4b5563);color:#fff;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:system-ui}LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<targets><target>lightning__AppPage</target><target>lightning__RecordPage</target><target>lightning__HomePage</target></targets>
</LightningComponentBundle>Where Train Station Exit fits
- Logout
- Exit
- Goodbye
- Sign Out
Interaction states & animations
- Click
- Multi-stage
- Cinematic
Topics
- #train
- #station
- #exit
- #logout
- #sunset
- #departure
- #goodbye
- #cinematic
Accessibility notes
Animation is decorative. Button text remains readable. Respect reduced-motion preference.
Browser support
- All modern browsers