dollcrds

purple & green crditem carrd main code

Mar 3rd, 2024
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. <link rel="preconnect" href="https://fonts.googleapis.com">
  2. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  3. <link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;500;700&display=swap" rel="stylesheet">
  4.  
  5. <div class="flip-card-3D-wrapper">
  6. <div id="flip-card">
  7. <div class="flip-card-front">
  8.  
  9. <div id="glenplayer02">
  10. <div class="music-controls" onclick="songstart();">
  11. <div class="playy">►</div>
  12. <div class="pausee">𓊕</div>
  13. </div>
  14. <div class="sonata"><img src="http://media.tumblr.com/tumblr_lm6prnRzP61qfoi4t.gif"> </div>
  15. <div class="labeltext"></div>
  16. </div><!--end music player-->
  17.  
  18. <audio id="tune" src="audio link""audio"></audio>
  19.  
  20. <div class="grid-container">
  21. <div class="grid-item">
  22.  
  23. <img class=hearty src="image link">
  24.  
  25. </div>
  26.  
  27. <div class="grid-item">
  28. <div id="name">Name</div>
  29. <br></br>
  30. info info info cr crditem
  31. </div>
  32.  
  33. <div class="grid-item">
  34. <br>
  35. <mark>links</mark>
  36. <br></br>
  37. <span style="line-height:1;">
  38. <a href="https://www.youtube.com/@dollcrds">youtube</a>
  39. <br>
  40. <a href="https://retrospring.net/@dollcrds">retrospring</a></span>
  41. <br>
  42. <a href="https://www.pinterest.com/dollcrds/">pinterest</a></span>
  43. <br>
  44. <a href="https://x.com/dollcrds?s=20">crd twitter</a></span>
  45. </div>
  46.  
  47. <div class="grid-item">
  48.  
  49. <div id="scroll"> <strong><u>text goes here</u></strong> info info info info info
  50. </div>
  51.  
  52. </div>
  53.  
  54. </div>
  55.  
  56. <button id="flip-card-btn-turn-to-back">more</button></div>
  57.  
  58. <div class="flip-card-back">
  59.  
  60. <img class=full src="image link">
  61.  
  62. <div class="grid-container2">
  63. <div class="grid-item">
  64. <div id="scroll2">
  65.  
  66. <mark><strong>before u follow</strong></mark> info info info
  67. <br></br>
  68.  
  69. <mark><strong>do not follow if</strong></mark> info info info
  70. </div>
  71. </div>
  72.  
  73. <div class="grid-item"> </div>
  74.  
  75. <div class="grid-item">
  76. <div id="scroll2">
  77. <mark><strong>kpop</strong></mark> info info info
  78. <br></br>
  79.  
  80. <mark><strong>text goes here</strong></mark> info info info
  81. </div>
  82. </div>
  83.  
  84. </div>
  85.  
  86. <button id="flip-card-btn-turn-to-front">back</button></div>
  87.  
  88. </div>
  89. </div>
  90.  
  91. <script>
  92. document.addEventListener('DOMContentLoaded', function(event) {
  93.  
  94. document.getElementById('flip-card-btn-turn-to-back').style.visibility = 'visible';
  95. document.getElementById('flip-card-btn-turn-to-front').style.visibility = 'visible';
  96.  
  97. document.getElementById('flip-card-btn-turn-to-back').onclick = function() {
  98. document.getElementById('flip-card').classList.toggle('do-flip');
  99. };
  100.  
  101. document.getElementById('flip-card-btn-turn-to-front').onclick = function() {
  102. document.getElementById('flip-card').classList.toggle('do-flip');
  103. };
  104.  
  105. });
  106. </script>
  107.  
  108. <style>
  109.  
  110. @font-face { font-family: space ranger; src:url(https://dl.dropbox.com/s/eis23duz97yq7e1/spacerangerlaserital.ttf); }
  111.  
  112. @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,600');
  113. html * {
  114. -webkit-font-smoothing: antialiased;
  115. -moz-osx-font-smoothing: grayscale;
  116. }
  117. *, *:after, *:before {
  118. -webkit-box-sizing: border-box;
  119. -moz-box-sizing: border-box;
  120. box-sizing: border-box;
  121. }
  122. html, body
  123. {
  124. height: 100%;
  125. width: 100%;
  126. font-family: 'Inconsolata', monospace;
  127. font-weight: 300;
  128. background: white;
  129. overflow: hidden;
  130. }
  131.  
  132. html {
  133. height: 100vh;
  134. width: 100vw;
  135. font-size: 16px;
  136. position: fixed;
  137. display: flex;
  138. align-items: center;
  139. justify-content: center;
  140. }
  141.  
  142. * {
  143. padding: 0;
  144. margin: 0;
  145. box-sizing: border-box;
  146. }
  147.  
  148. .flip-card-3D-wrapper {
  149.  
  150. width: 25em;
  151. height: 250px;
  152. font-size: 14px;
  153. max-width: 100%;
  154. max-height: 240px;
  155. position: relative;
  156. -o-perspective: 900px;
  157. -webkit-perspective: 900px;
  158. -ms-perspective: 900px;
  159. perspective: 900px;
  160. margin: 0 auto;
  161. }
  162. #flip-card {
  163.  
  164. width: 100%;
  165. height: 100%;
  166. text-align: center;
  167. margin: 50px auto;
  168. position: absolute;
  169. -o-transition: all 1s ease-in-out;
  170. -webkit-transition: all 1s ease-in-out;
  171. -ms-transition: all 1s ease-in-out;
  172. transition: all 1s ease-in-out;
  173. -o-transform-style: preserve-3d;
  174. -webkit-transform-style: preserve-3d;
  175. -ms-transform-style: preserve-3d;
  176. transform-style: preserve-3d;
  177. }
  178. .do-flip {
  179. -o-transform: rotateY(-180deg);
  180. -webkit-transform: rotateY(-180deg);
  181. -ms-transform: rotateY(-180deg);
  182. transform: rotateY(-180deg);
  183. }
  184. #flip-card-btn-turn-to-back, #flip-card-btn-turn-to-front {
  185.  
  186. position: absolute;
  187. bottom: 8px;
  188. right: 8px;
  189. width: 60px;
  190. height: 40px;
  191. background: #fff;
  192. cursor: pointer;
  193. visibility: hidden;
  194. font-family: 'Inconsolata', monospace;
  195. font-weight: 600;
  196. font-size: .8em;
  197. padding: 0;
  198. color: black;
  199. border: 1px solid black;
  200. border-radius: 6px;
  201. }
  202. #flip-card .flip-card-front, #flip-card .flip-card-back{
  203. width: 100%;
  204. height: 100%;
  205. position: absolute;
  206. -o-backface-visibility: hidden;
  207. -webkit-backface-visibility: hidden;
  208. -ms-backface-visibility: hidden;
  209. backface-visibility: hidden;
  210. z-index: 2;
  211.  
  212. }
  213. #flip-card .flip-card-front {
  214. background: #color;
  215. padding: 10px;
  216. border:1px solid black;
  217. border-radius: 6px;
  218. }
  219. #flip-card .flip-card-back {
  220. padding: 12px;
  221. border: 1px solid black;
  222. border-radius: 6px;
  223. -o-transform: rotateY(180deg);
  224. -webkit-transform: rotateY(180deg);
  225. -ms-transform: rotateY(180deg);
  226. transform: rotateY(180deg);
  227. background: rgb(189, 174, 202);
  228. background: radial-gradient(circle, rgb(189, 174, 202) 41%, rgb(130, 190, 96) 82%);
  229.  
  230. }
  231. #flip-card .flip-card-front p, #flip-card .flip-card-back p {
  232. color: grey;
  233. display: block;
  234. position: absolute;
  235. top: 40%;
  236. width: 100%;
  237.  
  238. }
  239.  
  240. .grid-container {
  241. position: relative;
  242. border: 1px solid black;
  243. display: grid;
  244. border-radius: 6px;
  245. overflow: hidden;
  246. grid-template-columns: 28% auto;
  247. background: rgb(189, 174, 202);
  248. background: radial-gradient(circle, rgb(189, 174, 202) 49%, rgba(255,255,255,1) 100%);
  249. padding: 10px;
  250. height: 100%;
  251. line-height: 0.85;
  252. }
  253.  
  254. .grid-container2 {
  255. position: relative;
  256. display: grid;
  257. overflow: hidden;
  258. grid-template-columns: 49% 2% 49%;
  259. padding: 0px;
  260. height: 100%;
  261. line-height: 0.85;
  262. margin-top: 5px;
  263. height: 50%;
  264. }
  265.  
  266. .hearty {
  267. width: 100%; height: 100px; border-radius: 100%; border: 1px solid black; position: relative; object-fit: cover;
  268. }
  269.  
  270. #name {
  271. position: relative;
  272. top: 10px;
  273. font-family: space ranger;
  274. color: #color;
  275. font-size: 3.3em;
  276. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  277. -webkit-animation: pop 1s ease-in-out infinite alternate;
  278. animation: pop 1s ease-in-out infinite alternate;
  279. -moz-animation: pop 1s ease-in-out infinite alternate;
  280. }
  281.  
  282. @keyframes pop {
  283. from {
  284. transform:scale(0.95)
  285. }
  286.  
  287. 50% {
  288. transform:scale(1)
  289. }
  290.  
  291. to {
  292. transform:scale(0.95)
  293. }
  294. }
  295.  
  296. @-webkit-keyframes pop {
  297. from {
  298. -webkit-transform:scale(0.95)
  299.  
  300. }
  301.  
  302. 50% {
  303. -webkit-transform:scale(1)
  304.  
  305. }
  306.  
  307. to {
  308. -webkit-transform:scale(0.95)
  309.  
  310. }
  311. }
  312.  
  313. #scroll {
  314. position: relative;
  315. bottom: 10px;
  316. height: 100px;
  317. padding: 7px;
  318. width: 100%;
  319. border: 1px solid black;
  320. border-radius: 4px;
  321. background: repeating-linear-gradient(
  322. 45deg,
  323. #color,
  324. #color 10px,
  325. #eaedde 10px,
  326. #eaedde 20px
  327. );
  328. }
  329.  
  330. mark { border: 1px solid black; background: #color; padding-left: 5px; padding-right: 5px; border-radius: 5px; }
  331.  
  332. a:hover { letter-spacing:1.5px; }
  333.  
  334. a { text-decoration: none; transition: .3s ease; color: black; font-weight: 500 ;}
  335.  
  336. .tiny {
  337. width: 0.8em;
  338. height: auto;
  339.  
  340. }
  341.  
  342. #scroll2 {
  343. height: 100px;
  344. padding: 5px;
  345. width: 100%;
  346. position: relative;
  347. overflow-y: scroll;
  348. background: #FFFFFF99;
  349. border: 1px solid black;
  350. border-radius: 6px;
  351. line-height: 1.05;
  352. }
  353.  
  354. .full {
  355. width: 100%;
  356. border: 1px solid black;
  357. border-radius: 2px;
  358. height: 100px;
  359. object-fit: cover;
  360. }
  361.  
  362. /*-------MUSIC PLAYER BY GLENTHEMES-------*/
  363. #glenplayer02 {
  364. position: absolute;
  365. left: 0px;
  366. top: -10%;
  367. display:flex;
  368. z-index:99;
  369. }
  370.  
  371. #glenplayer02 a {text-decoration:none;}
  372.  
  373. #glenplayer02 > div {
  374. align-self:center;
  375. -webkit-align-self:center;
  376. }
  377.  
  378. .music-controls {
  379. user-select:none;
  380. -webkit-user-select:none;
  381. width:22px;
  382. font-size:22px;
  383. cursor:pointer;
  384. }
  385.  
  386. .playy, .pausee { background: -webkit-linear-gradient(-90deg, #color 40%, #color 65%, #fff 95%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0.5px #color; -webkit-filter: drop-shadow(0px 0px 2px #color); } /* color of play & pause buttons */
  387.  
  388. .pausee {display:none;}
  389.  
  390. .sonata {
  391. margin-left:10px;
  392. color:#222; /* color of music note symbol */
  393. }
  394.  
  395. .labeltext {
  396. margin-left:8px;
  397. font-family:courier new;
  398. font-size:9px;
  399. color:#222; /* color of song title */
  400. }
  401.  
  402. </style>
  403.  
  404. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  405. <script src="//static.tumblr.com/gtjt4bo/QRmphdsdv/glenplayer02.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment