Giter VIP home page Giter VIP logo

enter-the-void.js's Introduction

enter-the-void.js by OKFocus

enter-the-void.js is a highly customizable jQuery plugin that allows for animation of typogragphy styles on the web.

Requirements

enter-the-void.js depends on jQuery (> v1.4).

Usage

enter-the-void.js should be bound to elements that contains type (headers, paragraphs, spans, etc).

Apply enter-the-void.js to an element on your webpage like so, within a <script> tag:

  $(document).ready(function(){
      $('h1').oktype();  
  });

When you hover on an <h1>, you'll now see the enter-the-void.js changing the type style. To make a more interesting animation, add an option or two:

  $(document).ready(function(){
      $('h1').oktype({
               randomColor: true,
               randomDecoration: true
             });
  });

Options

The following options are available to you:

option description default
weight alternates the font weight by toggling or selecting at random (a string – ‘toggle’ or ‘random’) null
minSize the minimum desired size for the type (an int) null
maxSize the maximum desired size for the type (an int) null
randomColor randomizes type color (a boolean) false
randomDecoration Random from array of text-decoration rules (a boolean) false
interval the speed of our animation in milliseconds (an int) 100
toggleCase randomizes capitalization and lowercase of type (a boolean) false
minSpace the maximum desired letter-spacing for type (an int) null
maxSpace the minimum desired letter-spacing for type (an int) null
restore restore the element to its prior state when not hovering (a boolean) true
hover execute animation on hover, otherwise always animate (a boolean) true

Run Tests

OKFocus tests JavaScript with Jasmine. After cloning this repo simply run:

$ bundle install
$ rake jasmine

enter-the-void.js's People

Contributors

jgv avatar

Stargazers

 avatar  avatar ᦔꪖ꠸ꪀ ᥇ꪶꪮᦔꪮ᥅ꪀ ᛕ꠸ꪑ avatar Ryder Ripps avatar Peterberwind avatar Alain van Hall avatar Michael Anthony avatar Michael Mukhin avatar Nicholas Beaty avatar Sylvester  avatar JT5D avatar Simon Snow avatar [ ] avatar M Haidar Hanif avatar Benji Bilheimer avatar nightcoregirl avatar Joseph Chiocchi avatar Theun Kohlbeck avatar Jonas Lund avatar gregory nicholas avatar Shines avatar

Watchers

James Cloos avatar Michael Anthony avatar  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.