A dark one-page website for a forest glamping site: one hand-drawn peach thread winds through the page, and a season dial recolors every drawn cabin and tree.
React + HTML
$69
页面地址: /
下方还有更多 ↓
内置
你能得到
仅深色为深色页面设计
桌面端、平板和手机为这些屏幕设计
依赖包…
代码大小…
省电30 fps,静止时空闲
隐藏时暂停不在屏幕内或在其他标签页
减少动效尊重用户的减少动效设置
每次修改都会检查
类型检查TypeScript 严格模式
代码检查与格式化ESLint · Prettier
测试与构建浅色和深色截图
安全审计无高危或严重漏洞通告
依赖包发布时间每个版本都已公开 7 天以上
空闲 CPU静止时不到半个核心,≤ 30 fps
代码
这个模板有什么不对劲吗? 发送反馈 ›
glamping-threadHTML
index.htmlpageThe page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
booking.csssectionAsk for dates: the booking form or, once sent, what happens next, beside the campfire where the thread ends.
booking.jssectionThe booking form: checks each required field, sends with send.js, then shows what happens next or the couldn't-send line.
cabins.csssectionChoose your hideaway: three cabin cards, each drawing's windows warming up as the thread arrives.
facts.csssectionThe place in one sentence: its numbers count up in turn as the thread underlines it.
footer.csssectionThe footer: the brand, two columns of links and the legal line.
forest.csssectionDays in the forest: four things to do, strung on the thread like beads.
guestbook.csssectionNotes from the guestbook: three guests' words, the thread waving above them.
hero.csssectionThe first screen: the drawn night forest with its lit cabin, the weather, the giant headline and the season dial.
hero.jssectionThe hero: depth as you scroll, the season dial that recolors every drawing, and the pause switch.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: opens and closes, closes on Escape and when a link in it is picked.
stay.csssectionThe stay: a title the thread loops around, then three drawings and their words in alternating rows.
partspartsWhat several sections share.
art.csspartThe drawings' shared parts: tree colors by season, snow, lit windows, flames, and how they change.
backdrop.csspartThe hero's ground from a background of yours (data-follow-background).
backdrop.jspartRests your background's drift while the hero's ground is off screen.
count-up.jspartNumbers that count up from zero when they scroll into view, each after its data-delay.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.glampingThread.
page.csspartWhat every section shares: the reset, the page column, titles, the two buttons, the focus ring, the reveals and the pause.
thread.csspartThe thread's layer over the sections it runs through: the peach line and the ember at its tip.
thread.jspartThe peach thread down the page: one line through every section's anchors, drawn as you scroll, waking each part it reaches.
index.html
The page and all its text, one marked block per section.
正在加载…
适用场景
Glamping sites, cabin rentals and small forest retreats that want a full website: the stay, cabins, activities, reviews and a booking ask.
工作原理
A thread draws itself down the page as you scroll and wakes each part it reaches. The hero's dial turns the season for every drawing.
使用方法
打开 index.html,或把文件夹放到任意静态服务器上。文字在 index.html,颜色和字体在 theme.css,表单的发送函数在 send.js。其余内容见 README.md 的纯 HTML 部分。