Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created November 22, 2016 03:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save CodeMyUI/6645049922a196f37a5dd0b1d35b7a5a to your computer and use it in GitHub Desktop.
Save CodeMyUI/6645049922a196f37a5dd0b1d35b7a5a to your computer and use it in GitHub Desktop.
#codevember 01 - svg motion

#codevember 01 - svg motion

First entry to codevember. It uses my lib slightly changed to handle full text support.

A Pen by coderitual on CodePen.

License.

<div class="js-odoo"></div>
odoo.default({ el:'.js-odoo', from: 'NOVEMBER16', to: 'CODEVEMBER', animationDelay: 1000 });
<script src="https://cdn.rawgit.com/coderitual/odoo/feature/codevember16/lib/odoo.js"></script>
@import url('https://fonts.googleapis.com/css?family=Inconsolata');
html, body {
height: 100%;
width: 100%;
overflow: hidden;
}
body {
background: radial-gradient(circle at 33% 100%, #FED373 4%, #F15245 30%, #D92E7F 62%, #9B36B7 85%, #515ECF);
font-family: 'Inconsolata';
font-weight: bold;
font-size: 16vmin;
text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
fill: #fff;
display: flex;
justify-content: center;
align-items: center;
}
@HaciKale
Copy link

HaciKale commented Mar 8, 2018

this is super nice, but you might wanna add to the readme that a script tag should be added to the html header

@MarkusLiebl
Copy link

when i create:
odoo.default({
el: '.js-odoo',
from: 'foo bar', // space are ok nothing will be replaced
to: 'foo bar', // space will be replaced with this letter 'y' and the letter 'z' will be replaced with a number '0'
animationDelay: 1000
})

is that what you want or is it a bug? I would need a space in the 'to' area
would you want to change that would be great!

@MurtazaNawaz
Copy link

How can i increase its spin time?

@MurtazaNawaz
Copy link

MurtazaNawaz commented Oct 3, 2019

got the solution to increase it.
In its JS file where n=t.duration set it to n=1000 to limit the spin to 1 second and Set the animationDelay to 0

@MightyDante
Copy link

this is awesome, thanks.

Is there any way to disable the blink on each character at the end of the animation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment