Advertisement
kisibachda

Untitled

Oct 3rd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.60 KB | None | 0 0
  1. // HTML
  2. <div class="see-more-pc"><img src="https://www.asl-corp.com/Content/resources/images/iconbx.png" alt=""></div>
  3. <div class="fix-item" style="display: none;">
  4. <div class="see-more-mb"><img src="https://www.asl-corp.com/Content/resources/images/arrow-topw.png" alt=""></div>
  5. <div class="par"><div class="item"><a href="/yeu-cau-bao-gia/yeu-cau-bao-gia" target=""><div class="img"></div>
  6. <p>Request</p></a></div><div class="item"><a href="/kiem-tra-booking" target=""><div class="img"></div>
  7. <p>Booking</p></a></div><div class="item"><a href="/tra-cuu-thong-tin/kiem-tra-van-tai-don" target=""><div class="img"></div>
  8. <p>Kiểm tra</p></a></div><div class="item"><a href="/hoi-dap" target=""><div class="img"></div>
  9. <p>Q&amp;A</p></a></div></div>
  10. </div>
  11.  
  12. //JS
  13. <script type="text/javascript">
  14. jQuery('.see-more-pc').click(function(){
  15. if(!jQuery('.see-more-pc').hasClass('see-more-show'))
  16. {
  17. jQuery(this).addClass('see-more-show');
  18. jQuery('.fix-item').show(300);
  19. }else{
  20. jQuery(this).removeClass('see-more-show');
  21. jQuery('.fix-item').hide();
  22. }
  23. });
  24. </script>
  25.  
  26.  
  27. // CSS
  28. .see-more-pc {
  29. position: fixed;
  30. right: 0;
  31. top: 8vh;
  32. z-index: 9999;
  33. width: 52px;
  34. height: 56px;
  35. background-color: #03375e;
  36. border-top-left-radius: 50%;
  37. border-bottom-left-radius: 50%;
  38. cursor: pointer;
  39. }
  40. /* line 1170, style.less */
  41. .see-more-pc img {
  42. padding: 10px;
  43. animation: rotate_square linear 3s infinite;
  44. }
  45. @keyframes rotate_square {
  46. /* line 1174, style.less */
  47. 10% {
  48. transform: rotate(72deg);
  49. animation-delay: 0.3s;
  50. }
  51. /* line 1178, style.less */
  52. 20% {
  53. transform: rotate(144deg);
  54. animation-delay: 0.3s;
  55. }
  56. /* line 1182, style.less */
  57. 30% {
  58. transform: rotate(216deg);
  59. animation-delay: 0.3s;
  60. }
  61. /* line 1186, style.less */
  62. 40% {
  63. transform: rotate(288deg);
  64. animation-delay: 0.3s;
  65. }
  66. /* line 1190, style.less */
  67. 50% {
  68. transform: rotate(360deg);
  69. animation-delay: 0.3s;
  70. }
  71. /* line 1194, style.less */
  72. 60% {
  73. transform: rotate(432deg);
  74. animation-delay: 0.3s;
  75. }
  76. /* line 1198, style.less */
  77. 70% {
  78. transform: rotate(504deg);
  79. animation-delay: 0.3s;
  80. }
  81. /* line 1202, style.less */
  82. 80% {
  83. transform: rotate(576deg);
  84. animation-delay: 0.3s;
  85. }
  86. /* line 1206, style.less */
  87. 90% {
  88. transform: rotate(648deg);
  89. animation-delay: 0.3s;
  90. }
  91. /* line 1210, style.less */
  92. 100% {
  93. transform: rotate(720deg);
  94. animation-delay: 0.3s;
  95. }
  96. }
  97. @media (max-width: 480px) {
  98. /* line 1216, style.less */
  99. .see-more-pc {
  100. display: none;
  101. }
  102. }
  103. /* line 1220, style.less */
  104. .see-more-show {
  105. width: 60px;
  106. right: 85px;
  107. transition: .55s;
  108. }
  109. /* line 1225, style.less */
  110. .fix-item {
  111. width: 95px;
  112. position: fixed;
  113. right: 0;
  114. top: 8vh;
  115. background-color: #03375e;
  116. padding: 15px 10px;
  117. z-index: 9999;
  118. border-top-left-radius: 10px;
  119. border-bottom-left-radius: 10px;
  120. display: none;
  121. }
  122. /* line 1236, style.less */
  123. .fix-item .see-more-mb {
  124. display: none;
  125. }
  126. /* line 1240, style.less */
  127. .fix-item .par .item {
  128. text-align: center;
  129. border: 1px solid #527691;
  130. border-radius: 5px;
  131. padding: 15px 10px;
  132. margin-bottom: 15px;
  133. }
  134. /* line 1246, style.less */
  135. .fix-item .par .item:last-child {
  136. margin-bottom: 0;
  137. }
  138. /* line 1249, style.less */
  139. .fix-item .par .item p {
  140. font-size: 13px;
  141. font-weight: normal;
  142. color: #fff;
  143. font-family: MYRIADPRO-REGULAR;
  144. padding-top: 10px;
  145. }
  146. @media (max-width: 480px) {
  147. /* line 21, style.less */
  148. .fix-item .par .item p {
  149. font-size: 11px;
  150. }
  151. }
  152. /* line 1255, style.less */
  153. .fix-item .par .item .img {
  154. position: relative;
  155. left: 0;
  156. right: 0;
  157. margin: 0 auto;
  158. }
  159. /* line 1262, style.less */
  160. .fix-item .par .item:first-child .img {
  161. background: url(../images/fix-item/img1.png);
  162. width: 23px;
  163. height: 25px;
  164. }
  165. /* line 1269, style.less */
  166. .fix-item .par .item:nth-child(2) .img {
  167. background: url(../images/fix-item/img2.png);
  168. width: 44px;
  169. height: 23px;
  170. }
  171. /* line 1276, style.less */
  172. .fix-item .par .item:nth-child(3) .img {
  173. background: url(../images/fix-item/img3.png);
  174. width: 25px;
  175. height: 25px;
  176. }
  177. /* line 1283, style.less */
  178. .fix-item .par .item:last-child .img {
  179. background: url(../images/fix-item/img4.png);
  180. width: 30px;
  181. height: 21px;
  182. }
  183. /* line 1289, style.less */
  184. .fix-item .par .item:hover {
  185. background-color: #fff;
  186. }
  187. /* line 1291, style.less */
  188. .fix-item .par .item:hover p {
  189. color: #03375e;
  190. }
  191. /* line 1295, style.less */
  192. .fix-item .par .item:hover:first-child .img {
  193. background: url(../images/fix-item/img5.png);
  194. }
  195. /* line 1300, style.less */
  196. .fix-item .par .item:hover:nth-child(2) .img {
  197. background: url(../images/fix-item/img6.png);
  198. }
  199. /* line 1305, style.less */
  200. .fix-item .par .item:hover:nth-child(3) .img {
  201. background: url(../images/fix-item/img7.png);
  202. }
  203. /* line 1310, style.less */
  204. .fix-item .par .item:hover:last-child .img {
  205. background: url(../images/fix-item/img8.png);
  206. }
  207. @media (max-width: 480px) {
  208. /* line 1317, style.less */
  209. .fix-item {
  210. bottom: 0;
  211. left: 0;
  212. width: 100%;
  213. top: unset;
  214. border-top-left-radius: 10px;
  215. border-top-right-radius: 10px;
  216. border-bottom-left-radius: 0;
  217. border: 1px solid #527691;
  218. display: block;
  219. padding: 5px;
  220. }
  221. /* line 1328, style.less */
  222. .fix-item .see-more-mb {
  223. display: block;
  224. text-align: center;
  225. font-size: 17px;
  226. color: #fff;
  227. padding: 5px 0;
  228. font-family: MYRIADPRO-REGULAR;
  229. animation: animate_small linear 1s infinite;
  230. }
  231. @keyframes animate_small {
  232. /* line 1338, style.less */
  233. 20% {
  234. opacity: 0.9;
  235. animation-delay: 0.2s;
  236. }
  237. /* line 1342, style.less */
  238. 40% {
  239. opacity: 0.7;
  240. animation-delay: 0.2s;
  241. }
  242. /* line 1346, style.less */
  243. 60% {
  244. opacity: 0.5;
  245. animation-delay: 0.2s;
  246. }
  247. /* line 1350, style.less */
  248. 80% {
  249. opacity: 0.3;
  250. animation-delay: 0.2s;
  251. }
  252. /* line 1354, style.less */
  253. 100% {
  254. opacity: 0.1;
  255. animation-delay: 0.2s;
  256. }
  257. }
  258. /* line 1359, style.less */
  259. .fix-item .par {
  260. display: -ms-flexbox;
  261. display: flex;
  262. -ms-flex-wrap: wrap;
  263. flex-wrap: wrap;
  264. }
  265. /* line 1364, style.less */
  266. .fix-item .par .item {
  267. display: none;
  268. -ms-flex: 0 0 48%;
  269. flex: 0 0 48%;
  270. max-width: 48%;
  271. margin: 10px 1% 5px 1%;
  272. padding: 10px;
  273. }
  274. /* line 1371, style.less */
  275. .fix-item .par .item:last-child {
  276. margin-bottom: 5px;
  277. }
  278. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement