vite-vue3-tailwind-gsap-starter Tailwind Templates

Vite Vue3 Tailwind Gsap Starter

a ⚡vite6+🖖vue3+🎨tailwindcss4+✨GSAP3 starter template.

⚡ Vite6 + 🖖 Vue3 + 🎨 TailwindCSS4 + ✨ GSAP3 Starter

🚀 Modern Frontend Boilerplate for Animation-Rich Apps 🌟 开箱即用的交互动画开发模板 | Production-Ready Starter Kit

✨ Features 核心功能

  • Vite 6 - 极速启动 + 闪电般的热更新
  • 🖖 Vue 3 Composition API - 更灵活的代码组织方式
  • 🎨 TailwindCSS 4 - 原子化CSS + JIT引擎
  • GSAP 3 - 专业级动画解决方案
  • 🛠 Pre-configured - 内置ESLint + Prettier + TypeScript
  • 📱 Mobile-friendly - 响应式设计开箱即用

🚀 Quick Start 快速开始

# 1. 克隆项目
git clone https://github.com/RyanHo97/vite-vue3-tailwind-gsap-starter

# 2. 安装依赖
pnpm install

# 3. 启动开发服务器
pnpm run dev

🎯 Project Structure 项目结构

├── src
│   ├── assets            # 静态资源
│   ├── components        # 组件
│   ├── composables       # Vue组合式函数
│   ├── styles            # 全局样式
│   ├── utils             # 工具函数
│   ├── views             # 页面视图
│   ├── App.vue           # 根组件
│   └── main.ts           # 入口文件
├── index.html            # 主HTML文件
└── vite.config.ts        # Vite配置

🌈 Examples 示例代码

基础GSAP动画

<script setup lang="ts">
import { onMounted } from 'vue'
import gsap from 'gsap'

onMounted(() => {
  gsap.from('.box', {
    duration: 1,
    x: -100,
    opacity: 0,
    ease: 'back.out(1.7)'
  })
})
</script>

<template>
  <div class="box w-20 h-20 bg-blue-500 rounded-lg"></div>
</template>

响应式设计

<template>
  <div class="flex flex-col md:flex-row gap-4">
    <div class="w-full md:w-1/2 bg-red-100 p-4">左侧内容</div>
    <div class="w-full md:w-1/2 bg-blue-100 p-4">右侧内容</div>
  </div>
</template>

🍭主要特性

已实现功能

  • ✅ Vite 6 基础配置
  • ✅ Vue 3 单文件组件支持
  • ✅ Tailwind CSS 4 完整集成
  • ✅ GSAP 动画库预配置
  • ✅ 基本的路由配置示例
  • ✅ 环境变量支持
  • ✅ ESLint + Prettier 代码规范

🤝 Contributing 贡献指南

欢迎提交PR或Issue!请确保:

  1. 代码符合ESLint规范
  2. 提交信息遵循Conventional Commits
  3. 新功能需附带测试用例

📜 License 许可证

MIT License

这是一个功能完整但仍在测试阶段的 starter 模板。alpha 版本意味着可能还会变化,建议非生产环境上使用。

Top categories

Loading Svelte Themes