Advertisement
powys

scrollboxes on image hover aka damian crd embed

Aug 11th, 2021 (edited)
11,278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 10.12 KB | None | 0 0
  1. /*cr crditem <3 enjoy!*/
  2.  
  3. <style type="text/css">* {cursor: url(https://cur.cursors-4u.net/others/oth-6/oth639.cur), auto !important;}</style>
  4.  
  5. <link rel="preconnect" href="https://fonts.googleapis.com">
  6. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  7. <link href="https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@800&display=swap" rel="stylesheet">
  8. <link rel="preconnect" href="https://fonts.googleapis.com">
  9. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  10. <link href="https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Mali:wght@400;600;700&display=swap" rel="stylesheet">
  11. <link rel="preconnect" href="https://fonts.googleapis.com">
  12. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  13. <link href="https://fonts.googleapis.com/css2?family=Gamja+Flower&display=swap" rel="stylesheet">
  14. <head>
  15.  
  16. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  17. <link href="//fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet">
  18.  
  19. <script src="https://static.tumblr.com/2pnwama/DLppehqvd/feathericons.js"></script>
  20.  
  21. <!-------MUSIC PLAYER BY GLENTHEMES------->
  22. <script src="https://dl.dropbox.com/s/vyffmps0ly6ikf4/glenplayer06.js"></script>
  23. <script type="text/javascript">
  24. // <![CDATA[
  25. var news=Array("name","name"); // name here //
  26. var cursor=""; // set cursor
  27. var delay=5; // seconds between each news item
  28.  
  29. /***************************\
  30. * News Ticker Text Effect *
  31. *(c)2004-14 mf2fm web-design*
  32. * http://www.mf2fm.com/rv *
  33. * DON'T EDIT BELOW THIS BOX *
  34. \***************************/
  35. var newsp, cursp, flash, item=0;
  36.  
  37. if (typeof('addRVLoadEvent')!='function') function addRVLoadEvent(funky) {
  38. var oldonload=window.onload;
  39. if (typeof(oldonload)!='function') window.onload=funky;
  40. else window.onload=function() {
  41. if (oldonload) oldonload();
  42. funky();
  43. }
  44. }
  45.  
  46. addRVLoadEvent(teleprint);
  47.  
  48. function teleprint () { if (document.getElementById) {
  49. var span=document.getElementById("news");
  50. while (span.childNodes.length) span.removeChild(span.childNodes[0]);
  51. delay*=1000;
  52. newsp=document.createElement("span");
  53. cursp=document.createElement("span");
  54. cursp.appendChild(document.createTextNode(String.fromCharCode(160)+cursor));
  55. span.appendChild(newsp);
  56. span.appendChild(cursp);
  57. ticker();
  58. }}
  59.  
  60. function ticker() {
  61. var i;
  62. while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]);
  63. newsp.appendChild(document.createTextNode(news[item].substring(0,1)));
  64. for (i=1; i<news[item].length; i++) setTimeout('newsp.firstChild.nodeValue="'+news[item].substring(0, i+1)+'"', 100*i);
  65. if (news[item].indexOf("www")!=-1) setTimeout('linkit('+item+')', 100*i);
  66. setTimeout('flash=setInterval("cursp.style.visibility=(cursp.style.visibility==\'visible\')?\'hidden\':\'visible\'", 234)', 100*i)
  67. setTimeout('clearInterval(flash)', delay);
  68. setTimeout('cursp.style.visibility="visible"', delay);
  69. setTimeout('ticker()', delay);
  70. item=++item%news.length;
  71. }
  72.  
  73. function linkit(q) {
  74. var a,p,e,l;
  75. p=news[q].indexOf("www");
  76. e=news[q].indexOf(" ", p);
  77. if (e==-1) e=news[q].length;
  78. l=news[q].substring(p, e);
  79. while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]);
  80. newsp.appendChild(document.createTextNode(news[q].substring(0, p)));
  81. a=document.createElement("a");
  82. a.href="http://"+l;
  83. a.appendChild(document.createTextNode(l));
  84. newsp.appendChild(a);
  85. newsp.appendChild(document.createTextNode(news[q].substring(e)));
  86. }
  87. // ]]>
  88. </script>
  89. </head>
  90.  
  91. <style>
  92.  
  93. @font-face {
  94. font-family: cutie;
  95. src: url(https://dl.dropbox.com/s/xo075bh6tbd4f7d/CP.ttf);
  96. }
  97.  
  98. @font-face {
  99. font-family: billo;
  100. src: url(https://dl.dropbox.com/s/klv8tmajlqrb2xz/BILLO___.TTF);
  101. }
  102.  
  103. @font-face {
  104. font-family: day;
  105. src: url(https://dl.dropbox.com/s/yob9nensv1rr0zq/HelloDay.otf);
  106. }
  107.  
  108. @font-face {
  109. font-family: janda;
  110. src: url(https://dl.dropbox.com/s/yrdkxo1lp0quocw/JandaHappyDay.ttf);
  111. }
  112.  
  113. @font-face {
  114. font-family: kitten;
  115. src: url(https://dl.dropbox.com/s/gluaq7dfui5acoa/KittenSlantTrial.ttf);
  116. }
  117.  
  118.  
  119. #news { /* css of the name */
  120. font-family: billo;
  121. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  122. position: absolute;
  123. color: white;
  124. font-weight: bold;
  125. font-size: 1.8em;
  126. z-index: 2;
  127. bottom: 80px;
  128. left: 20px;
  129. }
  130.  
  131. #abt { /* css of the info (race prns etc) */
  132. font-family: cutie;
  133. position: absolute;
  134. bottom: 70px;
  135. left: 20px;
  136. color: white;
  137. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  138. font-size: 1.2em;
  139. }
  140.  
  141. #cont { /* dont edit this :P */
  142. background: transparent;
  143. position: relative;
  144. margin-left: auto;
  145. margin-right: auto;
  146. width: 50%;
  147. border-radius: 7px;
  148. height: 200px;
  149. transition: 0.8s;
  150. -moz-transition: 0.8s;
  151. -webkit-transition: 0.8s;
  152. -o-transition: 0.8s;
  153. padding: 10px;
  154. display: flex;
  155.  
  156. }
  157.  
  158. .inside { /* css of image dont edit :P */
  159.  
  160. border-radius: 7px;
  161. margin-left: auto;
  162. margin-right: auto;
  163. width: 200px;
  164. height: 100%;
  165. object-fit: cover;
  166. transition: 0.8s;
  167. -moz-transition: 0.8s;
  168. -webkit-transition: 0.8s;
  169. -o-transition: 0.8s;
  170.  
  171. }
  172.  
  173. #cont:hover {
  174. width: 100%;
  175.  
  176. }
  177.  
  178. #cont:hover .inside {
  179. width: 40%;
  180. height: 100%;
  181. object-fit: cover;
  182. }
  183.  
  184. #cont2 {
  185. height: 200px;
  186. width: 100%;
  187. margin-left: 10px;
  188. padding: 0;
  189. }
  190.  
  191. #scroll1 { /* css of the scrollbox 1 */
  192. text-align: left;
  193. border-width:7px;
  194. border-style:solid;
  195. border-image: url("https://i.imgur.com/NJa4bp2.png") 8 fill round;
  196. padding: 7px;
  197. height: 82px;
  198. width: 100%;
  199. opacity: 0;
  200. overflow: scroll;
  201. font-family: 'Mali', cursive;
  202. font-size: 0.8em;
  203. transition: 0.8s;
  204. -moz-transition: 0.8s;
  205. -webkit-transition: 0.8s;
  206. -o-transition: 0.8s;
  207. line-height: 1.3em;
  208. }
  209.  
  210. #scroll2 { /* css of the scrollbox 2 */
  211. line-height: 1.3em;
  212. transition: 0.8s;
  213. -moz-transition: 0.8s;
  214. -webkit-transition: 0.8s;
  215. -o-transition: 0.8s;
  216. text-align: left;
  217. border-width:7px;
  218. border-style:solid;
  219. border-image: url("https://i.imgur.com/NJa4bp2.png") 8 fill round;
  220. margin-top: 10px;
  221. padding: 7px;
  222. height: 82px;
  223. width: 100%;
  224. opacity: 0;
  225. overflow: scroll;
  226. font-family: 'Mali', cursive;
  227. font-size: 0.8em;
  228. }
  229.  
  230. #cont:hover #scroll1 {
  231. opacity: 1;
  232. }
  233.  
  234. #cont:hover #scroll2 {
  235. opacity: 1;
  236. }
  237.  
  238. mark { /* round stuff like highlight */
  239. background: #DF4AA7;
  240. border-radius:7px;
  241. border: 1px solid black;
  242. padding-left: 5px;
  243. padding-right: 5px;
  244. color: #fff;
  245. }
  246.  
  247. :root {
  248. --Music-Player-Vinyl:#fff;
  249. --Vinyl-Icon-Size:17px;
  250. --Vinyl-Spin-Speed:3.5s;
  251. --Music-Controls:#fff;
  252. --Music-Controls-Size:12px;
  253. --Music-Title-Font-Size:11px;
  254. --Music-Title-Color:#000;
  255. }
  256. .glenjams-06 {
  257. display:none;
  258. position: absolute;
  259. bottom: 20px;
  260. left: 20px;
  261. z-index:99;
  262. }
  263.  
  264. .pasta {
  265. display:flex;
  266. align-items:center;
  267. }
  268.  
  269. .vinyl-spin {
  270. animation:recordspin var(--Vinyl-Spin-Speed) linear infinite;
  271. -webkit-animation:recordspin var(--Vinyl-Spin-Speed) linear infinite;
  272. -moz-animation:recordspin var(--Vinyl-Spin-Speed) linear infinite;
  273. -o-animation:recordspin var(--Vinyl-Spin-Speed) linear infinite;
  274. }
  275.  
  276. .vinyl-pause {
  277. animation-play-state:paused;
  278. -webkit-animation-play-state:paused;
  279. -moz-animation-play-state:paused;
  280. -o-animation-play-state:paused;
  281. }
  282.  
  283. @-webkit-keyframes recordspin {
  284. from {
  285. -webkit-transform:rotate(0deg);
  286. -o-transform:rotate(0deg);
  287. transform:rotate(0deg);
  288. }
  289. to {
  290. -webkit-transform:rotate(360deg);
  291. -o-transform:rotate(360deg);
  292. transform:rotate(360deg);
  293. }
  294. }
  295.  
  296. @keyframes recordspin {
  297. from {
  298. -ms-transform:rotate(0deg);
  299. -moz-transform:rotate(0deg);
  300. -webkit-transform:rotate(0deg);
  301. -o-transform:rotate(0deg);
  302. transform:rotate(0deg);
  303. }
  304. to {
  305. -ms-transform:rotate(360deg);
  306. -moz-transform:rotate(360deg);
  307. -webkit-transform:rotate(360deg);
  308. -o-transform:rotate(360deg);
  309. transform:rotate(360deg);
  310. }
  311. }
  312.  
  313. .vinyl, .vinyl svg {
  314. width:var(--Vinyl-Icon-Size);
  315. height:var(--Vinyl-Icon-Size);
  316. }
  317.  
  318. .music-controls {
  319. margin-left:10px;
  320. width:var(--Music-Controls-Size);
  321. overflow:hidden;
  322. cursor:pointer;
  323. }
  324.  
  325. .music-controls svg {
  326. width:var(--Music-Controls-Size);
  327. height:var(--Music-Controls-Size);
  328. color:var(--Music-Controls);
  329. stroke-width:1.5px;
  330. }
  331.  
  332. .pausee {display:none;}
  333.  
  334. .beff {display:none;}
  335. .aff {display:block;}
  336.  
  337. .music-title {
  338. margin-left:8px;
  339. font-family:work sans;
  340. font-size:var(--Music-Title-Font-Size);
  341. color:var(--Music-Title-Color);
  342. }
  343.  
  344. .ins { /* dont edit this :P */
  345. position: fixed;
  346. bottom: 10px;
  347. left: 10px;
  348. margin-bottom: 10px;
  349. margin-left: 10px;
  350. width: 10px;
  351. height: auto;
  352. }
  353.  
  354. </style>
  355.  
  356. <div id="cont">
  357.  
  358. <div id="news"></div> <!--dont add anything here!-->
  359.  
  360. <div id="abt"> info  </div> <!--info like prns race etc-->
  361.  
  362. <div class="glenjams-06">
  363. <div class="pasta">
  364. <div class="vinyl"></div>
  365. <div class="music-controls">
  366. <div class="playy"><i data-feather="play"></i></div>
  367. <div class="pausee"><i data-feather="pause"></i></div>
  368. </div>
  369. <div class="music-title"></div>
  370.  
  371. <audio id="audio" src="https://dl.dropbox.com/s/42mjna9sxsleb5j/Luis%20Miguel%20-%20Delirio.mp3" type="audio"></audio> <!--insert song here-->
  372. </div><!--pasta-->
  373. </div><!--glenjams-06-->
  374.  
  375. <img class=inside src="https://i.imgur.com/YMxEmoH.jpg"> <!--image!-->
  376.  
  377. <div id="cont2">
  378. <div id="scroll1">
  379. <span style="font-family: cutie; font-size:1.2em;"><mark>about & interests</mark></span> info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info
  380.  
  381. </div> <!-- scrollbox 1 info  -->
  382.  
  383. <div id="scroll2"> <span style="font-family: cutie; font-size:1.2em;"><mark>rules</mark></span>
  384. info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info info
  385. </div> <!-- scrollbox 2 info  -->
  386. </div>
  387. <!-- dint edit anything after here!!!  -->
  388. </div>
  389.  
  390. <script>feather.replace()</script>
  391. <a href="https://twitter.com/crditem"><img class=ins src="https://64.media.tumblr.com/tumblr_lkl6u2Pii71qfamg6.gif"></a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement