Coder Social home page Coder Social logo

zen-li / tumblr-style-cog-spinners Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pasqualevitiello/tumblr-style-cog-spinners

0.0 1.0 0.0 261 KB

Tumblr-style cog spinners

Home Page: http://pasqualevitiello.github.io/Tumblr-Style-Cog-Spinners/

JavaScript 1.60% CSS 41.90% HTML 56.50%

tumblr-style-cog-spinners's Introduction

Tumblr-Style-Cog-Spinners

Tumblr-style cog loading animation made with CSS and SVG icons designed by Jiri Silha.
View Demo

Markup

Include to your pages the HTML code, just before the closing `` tag:
<div id="loader" class="overlay-loader">
	<div class="loader-background color-flip"></div>
	<img class="loader-icon spinning-cog" src="cogs/cog01.svg" data-cog="cog01">
</div>

Don't forget to include the SVG icon you wish to use.

CSS

Include the file `cog.css` into the `` section, or add its content to your stylesheet.

Javascript

Use your favourite method to make the loader disappear when website content is loaded. Here is a jQuery example:
jQuery(window).load(function($) {

    $('.loader-icon').removeClass('spinning-cog').addClass('shrinking-cog');
    $('.loader-background').delay(1300).fadeOut(); 
     
});

A good alternative is using DeSandro's imagesLoaded plugin to detect when images have been loaded.

Playground

Here is a pen you can play with!

Credits

tumblr-style-cog-spinners's People

Contributors

pasqualevitiello avatar

Watchers

Zen Li 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.