Giter VIP home page Giter VIP logo

svg-drift-bottle's Introduction

svg-drift-bottle

Simple drift bottle demo using SVG SMIL Animation

Have a peek!

svg-drift-bottle

What is this?

I was told to create a minisite to celebrate the lunar sub-new year, which you get blessings from the new media of our school.

So I thought it would be nice to explore SVG SMIL Animation. Here is what I got eventually.

Setbacks

Testing on Android TBS (the default WebView used in mega app, WeChat) and Mobile Safari is a pain in the ass,

for they are super bitchy about fromats of SVG attributes.

Drawbacks

I was a bit of rushing time, but the page needs to fill and spread the entire viewport.

But there are so many of them! I spent most of the time on making transitions to wired screen ratios and browsers.

So I did what I had to do.

Dynamic font size! Default serif font! (Well it looks great in Chinese, so...) Experimental CSS features! ID selector all over the place! Quirky usage of flex!

Yay, why not? Once you have touched the chaotic coding style when creating amateur web pages, you can never go back.

Glossary

The texts used in the modal panel are selected from paragraphs of an essay full of gibberish.

I found it the perfect painkiller whenever I feel headache for generating Chinese Lorem Ipsum.

Don't panic, you can replace them with you own texts in the JavaScript part.

svg-drift-bottle's People

Contributors

chrysocolla avatar

Stargazers

 avatar  avatar 灰色の果实 avatar Siri Lee avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.