- Chưa có sản phẩm trong giỏ hàng.
Hôm nay mình hướng dẫn các bạn làm. Cái này chỉ cần html + css đơn giản là làm đc
Code html :
1
2
3
4
5
6
7
|
<div class=“hotline hidden-xs”><img class=“faa-wrench animated” src=“https://thienvanmedia.com/wp-content/uploads/2017/08/phone.png”><p></p>
<div class=“hotline-no”>
<p><a href=“tel:0983078804”>0983.078.804</a></p>
<p>gọi để nhận tư vấn miễn phí</p>
<p></p>
</div>
</div>
|
code 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
.hotline {
background: url(https://thienvanmedia.com/wp-content/uploads/2017/08/hotline.png);
background–size: cover;
position: fixed;
left: 0;
z–index: 9999999;
height: 100px;
width: 300px;
color: #fff;
padding: 30px 0 0 45px;
top: 470px;
}
.hotline–no a {
color: #FFF;
}
.hotline .hotline–no {
float: left;
}
.faa–wrench.animated {
animation: wrench 2.5s ease infinite;
animation–name: wrench;
animation–duration: 2.5s;
animation–timing–function: ease;
animation–delay: initial;
animation–iteration–count: infinite;
animation–direction: initial;
animation–fill–mode: initial;
animation–play–state: initial;
}
.hotline p:first–child {
font–family: utm_avobold,sans–serif;
font–size: 14px;
}
.hotline p {
font–size: 11px;
font–family: utm_avoregular,sans–serif;
text–transform: uppercase;
margin: 0;
}
.hotline p {
text–align: center;
}
.hotline img {
float: left;
margin: 11px 18px 0 3px;
}
img {
border: 0;
vertical–align: middle;
}
@–webkit–keyframes wrench{0%{–webkit–transform:rotate(–12deg);transform:rotate(–12deg)}8%{–webkit–transform:rotate(12deg);transform:rotate(12deg)}10%,28%,30%,48%,50%,68%{–webkit–transform:rotate(24deg);transform:rotate(24deg)}18%,20%,38%,40%,58%,60%{–webkit–transform:rotate(–24deg);transform:rotate(–24deg)}100%,75%{–webkit–transform:rotate(0);transform:rotate(0)}}@keyframes wrench{0%{–webkit–transform:rotate(–12deg);–ms–transform:rotate(–12deg);transform:rotate(–12deg)}8%{–webkit–transform:rotate(12deg);–ms–transform:rotate(12deg);transform:rotate(12deg)}10%,28%,30%,48%,50%,68%{–webkit–transform:rotate(24deg);–ms–transform:rotate(24deg);transform:rotate(24deg)}18%,20%,38%,40%,58%,60%{–webkit–transform:rotate(–24deg);–ms–transform:rotate(–24deg);transform:rotate(–24deg)}100%,75%{–webkit–transform:rotate(0);–ms–transform:rotate(0);transform:rotate(0)}}.faa–parent.animated–hover:hover>.faa–wrench,.faa–wrench.animated,.faa–wrench.animated–hover:hover{–webkit–animation:wrench 2.5s ease infinite;animation:wrench 2.5s ease infinite;transform–origin–x:90%;transform–origin–y:35%;transform–origin–z:initial}.faa–parent.animated–hover:hover>.faa–wrench.faa–fast,.faa–wrench.animated–hover.faa–fast:hover,.faa–wrench.animated.faa–fast{–webkit–animation:wrench 1.2s ease infinite;animation:wrench 1.2s ease infinite}.faa–parent.animated–hover:hover>.faa–wrench.faa–slow,.faa–wrench.animated–hover.faa–slow:hover,.faa–wrench.animated.faa–slow{–webkit–animation:wrench 3.7s ease infinite;animation:wrench 3.7s ease infinite}
|
Có gì cần trợ giúp các bác có thể liên hệ fb của e nhé :3