Skip to content

Commit

Permalink
text effetcs ejive-2k18
Browse files Browse the repository at this point in the history
  • Loading branch information
mvskiren committed Dec 13, 2017
1 parent f0d9632 commit f18be81
Show file tree
Hide file tree
Showing 6 changed files with 632 additions and 0 deletions.
129 changes: 129 additions & 0 deletions effects/TEST.HTML
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>

@import url(https://fonts.googleapis.com/css?family=Wire+One);

*:focus {
outline: none;
}


body {
background-color:#000000;
text-align: center;
font-family: 'Wire One',, Arial, sans-serif;
color:#fff;
font-size: 50px;
padding-top:1em;
}

* { color:#fff; text-decoration: none;}





/*
body {
background: #111111;
font-family: 'Wire One',, Arial, sans-serif;
font-size: 100px;
}
*/

.neon {
margin: 0 auto;
text-align: center;
color: white;
text-shadow: 0 0 10px #87ceeb, 0 0 15px #87ceeb, 0 0 30px deepskyblue, 0 0 30px deepskyblue, 0 0 30px deepskyblue, 0 0 40px deepskyblue, 0 0 50px deepskyblue, 0 0 60px deepskyblue, 0 0 70px deepskyblue, 0 0 80px deepskyblue, 0 0 90px deepskyblue, 0 0 100px skyblue;
}

.info {
margin: 0 auto;
text-align: center;
color: #87ceeb;
text-shadow: 0 0 10px #87ceeb, 0 0 15px #87ceeb;
font-size: 40px;
}


</style>



<script>

var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false;
};

TxtType.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];

if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}

this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';

var that = this;
var delta = 200 - Math.random() * 100;

if (this.isDeleting) { delta /= 2; }

if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}

setTimeout(function() {
that.tick();
}, delta);
};

window.onload = function() {
var elements = document.getElementsByClassName('typewrite');
for (var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-type');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtType(elements[i], JSON.parse(toRotate), period);
}
}
// INJECT CSS
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #fff}";
document.body.appendChild(css);
};
</script>




<div class="neon" contenteditable>EJIVE-2k18</div>
<div class="info">A pragati Initiative</div>

<h1>
<a href="" class="typewrite" data-period="2000" data-type='[ "Hi, Im Mvs Kiran.", "HELLO TO DC.", "I Love Design.", "we Love to Develop." ]'>
<span class="wrap"></span>
</a>
</h1>


</head>
81 changes: 81 additions & 0 deletions effects/autojs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
body {
background-color:#000000;
text-align: center;
color:#fff;
padding-top:10em;
}

* { color:#fff; text-decoration: none;}


</style>
<script>

var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false;
};

TxtType.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];

if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}

this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';

var that = this;
var delta = 200 - Math.random() * 100;

if (this.isDeleting) { delta /= 2; }

if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}

setTimeout(function() {
that.tick();
}, delta);
};

window.onload = function() {
var elements = document.getElementsByClassName('typewrite');
for (var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-type');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtType(elements[i], JSON.parse(toRotate), period);
}
}
// INJECT CSS
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #fff}";
document.body.appendChild(css);
};
</script>

<h1>
<a href="" class="typewrite" data-period="2000" data-type='[ "Hi, Im Si.", "I am Creative.", "I Love Design.", "I Love to Develop." ]'>
<span class="wrap"></span>
</a>
</h1>
</head>
93 changes: 93 additions & 0 deletions effects/chcc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
@import url(https://fonts.googleapis.com/css?family=Montserrat);

html, body{
height: 100%;
font-weight: 800;
}

body{
background: #000000;
font-family: Arial;
}

svg {
display: block;
font: 10.5em 'Montserrat';
width: 960px;
height: 300px;
margin: 0 auto;
}

.text-copy {
fill: none;
stroke: white;
stroke-dasharray: 6% 29%;
stroke-width: 5px;
stroke-dashoffset: 0%;
animation: stroke-offset 5.5s infinite linear;
}

.text-copy:nth-child(1){
stroke: #4D163D;
animation-delay: -1;
}

.text-copy:nth-child(2){
stroke: #840037;
animation-delay: -2s;
}

.text-copy:nth-child(3){
stroke: #BD0034;
animation-delay: -3s;
}

.text-copy:nth-child(4){
stroke: #BD0034;
animation-delay: -4s;
}

.text-copy:nth-child(5){
stroke: #FDB731;
animation-delay: -5s;
}

@keyframes stroke-offset{
100% {stroke-dashoffset: -35%;}
}

</style>

<div class="container">
<div class="row">
<svg viewBox="0 0 960 300">
<symbol id="s-text">
<text text-anchor="middle" x="50%" y="80%">Mvskiran </text>
</symbol>

<g class = "g-ants">
<use xlink:href="#s-text" class="text-copy"></use>
<use xlink:href="#s-text" class="text-copy"></use>
<use xlink:href="#s-text" class="text-copy"></use>
<use xlink:href="#s-text" class="text-copy"></use>
<use xlink:href="#s-text" class="text-copy"></use>
<use xlink:href="#s-text" class="text-copy"></use>
<use xlink:href="#s-text" class="text-copy"></use>
</g>
</svg>
</div>

<div class="row">
<address>

</address>
</div>
</div>
</div>


</head>
37 changes: 37 additions & 0 deletions effects/neoneffect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>

@import url(https://fonts.googleapis.com/css?family=Wire+One);

*:focus {
outline: none;
}

body {
background: #111111;
font-family: 'Wire One',, Arial, sans-serif;
font-size: 100px;
}

.neon {
margin: 0 auto;
text-align: center;
color: white;
text-shadow: 0 0 10px #87ceeb, 0 0 15px #87ceeb, 0 0 30px deepskyblue, 0 0 30px deepskyblue, 0 0 30px deepskyblue, 0 0 40px deepskyblue, 0 0 50px deepskyblue, 0 0 60px deepskyblue, 0 0 70px deepskyblue, 0 0 80px deepskyblue, 0 0 90px deepskyblue, 0 0 100px skyblue;
}

.info {
margin: 0 auto;
text-align: center;
color: #87ceeb;
text-shadow: 0 0 10px #87ceeb, 0 0 15px #87ceeb;
font-size: 40px;
}


</style>
<div class="neon" contenteditable>EJIVE-2k18</div>
<div class="info">A pragati Initiative</div>
</head>
Loading

0 comments on commit f18be81

Please sign in to comment.