-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlemon.html
37 lines (36 loc) · 921 Bytes
/
lemon.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
29
30
31
32
33
34
35
36
37
<style>
@import url('https://fonts.googleapis.com/css?family=Sonsie+One');
* {
font-family: "Sonsie One";
}
* {margin: 0px; padding: 0px;}
div {
width: 600px;
height: 400px;
line-height: 400px;
background: #43C6AC;
background: -webkit-linear-gradient(to left, #43C6AC, #191654);
background: linear-gradient(to left, #43C6AC, #191654);
display: inline-block;
}
span {
color: white;
display: inline-block;
vertical-align: middle;
line-height: normal;
}
</style>
<div>
<span>This is me lklklk I'm so fun World</span>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
$(function() {
var width = "400";
var inner = $('span'),
difference = width -inner.width(),
ratio = width /inner.width(),
style = 'translateX(' + difference/2 + 'px) ' + 'scale(' + ratio + ')';
inner.css({'webkit-transform': style, transform: style});
});
</script>