Git Product home page Git Product logo

corona-screensaver.yossimal95.github.io's Introduction

Corona-screensaver

A covid-19 animated screensaver that will brighten up any website!

You can use it by adding the css link and the JS script link to your website. That easy..!

After you add it, if the user won't move the mouse for 90 sec - the screen will start to be filled with coronavirus animated cartoons (till he moves the mouse again).

Changing interval

You can change the screensaver activation time by using the setTime() function, and setting the amount of time in seconds. By default the activation time is set to 90 seconds.

Example:

In the <head> tag on your website add the css link:

<link rel="stylesheet" href="coronaScreen.css" />

Also add the JS script:

<script src="coronaScreen.js"></script>

In case you want to change the activation time, you need to add the setTime() function in the bottom of the <body> and send a time parameter (50 sec for example):

<body>
 ///your things..
  
  <script>
      setTime(50);
  </script>
</body>

alt text

Credit: the coronavirus cartoons are based on:

https://medium.com/cssclass-com/learning-how-to-create-css-creatures-8318d85d8924

corona-screensaver.yossimal95.github.io's People

Contributors

yossimal95 avatar

Watchers

 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.