All Projects → shakrmedia → Tuesday

shakrmedia / Tuesday

Licence: mit
A quirky CSS Animation Library by Shakr

Projects that are alternatives of or similar to Tuesday

web-animation-club
CSS controlled animations with transitionEnd, onTransitionEnd, animationend, onAnimationEnd events and frame throwing. Tiny javascript library with cross-browser methods to handle css animation/transition callbacks and event loop frame throwing. 📚🖥️📱
Stars: ✭ 52 (-88.34%)
Mutual labels:  css-animations, animation-library
typed.css
A fully functional and flexible typewriter mixin for SCSS, with Less and Stylus support coming soon! Typed.css supports multiple strings, multi-line strings, variable speeds, per-string styling, animated caret (blinking insertion cursor), directional type-pausing, and much more. It's even accessible! ✨
Stars: ✭ 113 (-74.66%)
Mutual labels:  less, css-animations
Vivify
Vivify is free CSS animation library.
Stars: ✭ 1,651 (+270.18%)
Mutual labels:  animation-library, css-animations
smoothr
A custom React router that leverages the Web Animations API and CSS animations.
Stars: ✭ 28 (-93.72%)
Mutual labels:  css-animations, animation-library
Morphext
A simple, high-performance and cross-browser jQuery rotating / carousel plugin for text phrases powered by Animate.css.
Stars: ✭ 384 (-13.9%)
Mutual labels:  css-animations
React Mt Svg Lines
A React.js wrapper component to animate the line stroke in SVGs
Stars: ✭ 344 (-22.87%)
Mutual labels:  css-animations
Native Css
Convert pure CSS to React Style or javascript literal objects.
Stars: ✭ 322 (-27.8%)
Mutual labels:  css-animations
Stacks
Stack Overflow’s Design System
Stars: ✭ 312 (-30.04%)
Mutual labels:  less
Ng Alain
NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
Stars: ✭ 4,287 (+861.21%)
Mutual labels:  less
Fontisto
The iconic font and CSS toolkit. Fontisto gives you scalable vector icons that can instantly be customized: size, color, drop shadow and anything that can be done with the power of CSS.
Stars: ✭ 413 (-7.4%)
Mutual labels:  less
Material Cards
Card style based on Google Material color palette
Stars: ✭ 370 (-17.04%)
Mutual labels:  less
Josh.js
A JavaScript library to animate content on page scroll.
Stars: ✭ 345 (-22.65%)
Mutual labels:  css-animations
Xamanimation
Xamarin Forms Animation Library
Stars: ✭ 389 (-12.78%)
Mutual labels:  animation-library
Epic Spinners
Easy to use css spinners collection with Vue.js integration
Stars: ✭ 3,548 (+695.52%)
Mutual labels:  css-animations
Lightgallery
A customizable, modular, responsive, lightbox gallery plugin.
Stars: ✭ 4,829 (+982.74%)
Mutual labels:  css-animations
React Antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 321 (-28.03%)
Mutual labels:  less
Textillate
A jquery plugin for CSS3 text animations.
Stars: ✭ 3,590 (+704.93%)
Mutual labels:  css-animations
Sku
Front-end development toolkit
Stars: ✭ 403 (-9.64%)
Mutual labels:  less
Vue Xiaomi Shop
这是一个高仿小米商城(手机版)的Vue项目
Stars: ✭ 353 (-20.85%)
Mutual labels:  less
Spruce Android
Spruce Animation Library
Stars: ✭ 3,663 (+721.3%)
Mutual labels:  animation-library

Tuesday

What is it?

It's a quirky CSS Animation Library developed at Shakr.

Why 'Tuesday'?

Because at Shakr, Tuesdays are like Mondays.

Why did you make Tuesday?

There are many other CSS animation libraries out there, but many of them have motion paths that are too big that stand out too much when used inside certain environments. Also a problem is that some of the effects designed are just a bit too long in duration for UI element transitions. (0.2s and 0.3s is a big difference, if you know what I mean.)

So while we were working on our project, we decided to make our own animation library that fits our needs. Tuesday aims to fill out the gap inbetween, providing a more subtle set of effects that can seamlessly integrate into a wider variety of websites or web-app UI designs.

Tuesday is a stand-alone library you can use without any dependencies, but you can use Tuesday alongside other animation libraries as well. All Tuesday animation names start with td prefix so there is a low chance two libraries will collide unless there is another one that uses the same prefix and animation name.

If you're interested, check out the "Making of" article in our Making Shakr blog for a more thorough introduction and explanation on how this project came to life.

How to use

The Basic Way

  1. Download the release ZIP file or clone the repository.

  2. Include the compiled CSS file in the <head> of your HTML file.

    <head>
      <link rel="stylesheet" type="text/css" href="css/tuesday.min.css" />
    </head>
    

    Or alternatively, use a CDN link instead if you don't want to host the file.

    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/shakrmedia/[email protected]/build/tuesday.min.css" />
    
  3. Add the class .animated and the class name of the animation to the element you want to animate.

    <h1 id="header-text" class="animated tdDropInLeft">It's Tuesday.</h1>
    
  4. Your element will now animate!

The Advanced Way (Using LESS source file)

  1. Download the release ZIP file or clone the repository.

  2. Import the source tuesday.less file to your site LESS stylesheet.

    @import 'tuesday.less';
    
  3. Apply the animation classes as mixins on the element rule.

    h1#header-text {
        .animated;
        .tdDropInLeft;
    }
    
  4. Your element will now animate!

Controlling & Customizing animations

Since the animations will start the moment after the element is loaded in DOM (or made visible with display: block), you'll need to dynamically apply classes through JavaScript if you want to controll when the animations will start.

However, if you just want simple delays as to when the animations will start, you can do it by adding animation-delay: (n)s property on the element rule.

Similarly if you need to adjust the duration of the animation, add animation-duration: (n)s on the element.

Custom building

Tuesday uses Grunt to automate the building process. In case you want to custom-build the CSS file, you can do so by setting up Grunt, heading to the cloned repository path and running grunt.

The default grunt task includes autoprefixer that automatically includes vendor-prefixes for CSS3 draft properties.

In case you want to remove any specific group of animations from the output file to reduce file size, just comment out lines in the main tuesday.less before running Grunt, and the compiler will skip through the excluded ones.

Animation List

All animation names start with the td prefix. Naming conventions are based on that of the Animate.css: td+Name+In/Out+Direction/Option

More animations are to be added. Check out the demo page to test out the animations in action.

FadeIn

  • tdFadeIn
  • tdFadeInDown
  • tdFadeInLeft
  • tdFadeInUp
  • tdFadeInRight

FadeOut

  • tdFadeOut
  • tdFadeOutDown
  • tdFadeOutLeft
  • tdFadeOutUp
  • tdFadeOutRight

Expand

  • tdExpandIn
  • tdExpandInBounce
  • tdExpandOut
  • tdExpandOutBounce

Stamp

  • tdStampIn
  • tdStampInSwing

Shrink

  • tdShrinkIn
  • tdShrinkInBounce
  • tdShrinkOut
  • tdShrinkOutBounce

Swing

  • tdSwingIn
  • tdSwingOut

DropIn

  • tdDropInLeft
  • tdDropInRight

Plop

  • tdPlopIn
  • tdPlopInDown
  • tdFadeInUp

HingeFlip

  • tdHingeFlipIn
  • tdHingeFlipOut

Browser Compatibility

Tuesday animations are implemented entirely using CSS animations. To see which specific browser versions support CSS animations, please refer to the Can I Use page.

Author

License

Released under the MIT License. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].