html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script language="javascript" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animation Text in JS</title>
<style>
/*
body {
margin: 0;
display: flex;
justify-content: center;
min-height: 100vh;
align-items: center;
font-family: monospace;
font-size: 48px;
background: rgba(0,0,0,0.1);
color: rgba(0,0,0,0.9);
}
h1 {
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
body {
margin: 0;
display: flex;
justify-content: center;
min-height: 100vh;
align-items: center;
font-family: monospace;
font-size: 48px;
background: rgba(0,0,0,0.1);
color: rgba(0,0,0,0.9);
}
h1 {
position: absolute;
}
span {
position: absolute;
}
.text-rotate {
font-size: 36px;
text-align: left;
color: #7ac051;
margin-left: 40px;
height: 30px;
line-height: 1;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run