Dumplings, pixels, & the mouse
marchbox / monorail Goto Github PK
View Code? Open in Web Editor NEWZacky Ma’s personal website.
Home Page: https://marchbox.com
Zacky Ma’s personal website.
Home Page: https://marchbox.com
Tree and train colors should be more realistic, e.g. tree should have dark green color, train car bodies should have dark colors but their outlines should have bright colors to match their corresponding light colors.
Related: #18
Add drawing archive.
Especially to keyboard users.
Use marchbox.dev as staging and marchbox.com as production.
Maybe also explore Netlify Identity to protect the staging.
When using browser's back button (or swipe backward on iOS), the monorail navigation doesn't restore its position because browsers usually cache the DOM state. Need to find a solution to restore monorail position so users can navigate.
So that SVG code can be compiled into JS, less HTTP requests.
To avoid re-layout.
Support RSS
Blocked by #9
Should at least have one tree on each side without overlapping with any footer content.
When animation mode is "scroll", currently the monorail position always makes sure the active car is center aligned based on the viewport, even when the viewport width is big enough to contain all cars. Should update the centerActiveCar()
method to be more smart, and center align the entire monorail when all cars are visible.
So that we can inline SVG code and easily manipulate colors.
Hopefully this library and better manage the monorail animations.
Regardless of animation mode. Use case: loading the page in landscape orientation (animation mode = transform) then rotate to portrait, without arrive
class, monorail doesn't have scroll snap.
Maybe with https://www.11ty.dev/docs/plugins/image/ plugin.
Current scroll animation is too buggy. Check the behavior of transforming a scroll child.
URLs should follow Articles:
/drawings/project/<tag>
/drawings/<tag>/<title-slug>
Subtasks:
Currently the monorail car lifts on hover, this creates issues with moving click/touch target. Should keep the target static.
Adjust the train/car without interfering with user scrolling.
Little icon + text links:
Use Netlify Form + Functions (processing form submissions and sending emails to myself) for contact form instead of a plain email.
Instead of monorail track outline color
Monorail CSS code are currently in:
.nav
.monorail
.monorail-*
Should encapsulate all into the land-monorail
component.
Workflow:
mainstreet
When, for some reason, arrive
class isn't added, if you scroll monorail all the way to the right, then try to click any links in the main content, navigation will wait for departure observer's signal. Should probably also add a timeout to it.
A few things to try:
land-inlinesvg
to be defined and loaded before defining other custom elementsland-monorail
to hydrate before kicking in the arrival animationA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.