Advertisement
dianakko

ikisschris crd code idk

Sep 7th, 2021
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. <!--FLOATING TEXT CODE-->
  2.  
  3. <style>
  4. #float {
  5. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  6. font-style: italic;
  7. font-size:2em;
  8. font-weight:bold;
  9. color: #fff;
  10. animation-name: floating;
  11. animation-duration: 3s;
  12. animation-iteration-count: infinite;
  13. animation-timing-function: ease-in-out;
  14. }
  15.  
  16. @keyframes floating {
  17. 0% { transform: translate(0, 0px); }
  18. 50% { transform: translate(0, 15px); }
  19. 100% { transform: translate(0, -0px); }
  20. }
  21.  
  22. </style>
  23. <div id="float">floating text</div>
  24.  
  25.  
  26. <!--BUBBLY BACKGROUND CODE-->
  27.  
  28.  
  29. <script type="text/javascript">
  30. // <![CDATA[
  31. var colours=new Array("#FE82B6", "#FE82B6", "#ff9bc4", "#ff9bc4", "#fff"); // colours for top, right, bottom and left borders and background of bubbles
  32. var bubbles=66; // how many bubbles are moving at any given time
  33. var over_or_under="over"; // set to "over" for bubbles to always be on top, or "under" to allow them to float behind other objects
  34.  
  35. /****************************
  36. * JavaScript Bubble Bath *
  37. *(c)2010-13 mf2fm web-design*
  38. * http://www.mf2fm.com/rv *
  39. * DON'T EDIT BELOW THIS BOX *
  40. ****************************/
  41.  
  42. var swide=800;
  43. var shigh=600;
  44. var bubb=new Array();
  45. var bubbx=new Array();
  46. var bubby=new Array();
  47. var bubbs=new Array();
  48. var boddie;
  49. var ie_version=(navigator.appVersion.indexOf("MSIE")!=-1)?parseFloat(navigator.appVersion.split("MSIE")[1]):false;
  50.  
  51. function addLoadEvent(funky) {
  52. var oldonload=window.onload;
  53. if (typeof(oldonload)!='function') window.onload=funky;
  54. else window.onload=function() {
  55. if (oldonload) oldonload();
  56. funky();
  57. }
  58. }
  59.  
  60. addLoadEvent(bubba);
  61.  
  62. function bubba() { if (document.getElementById) {
  63. var i, rats, div;
  64. boddie=document.createElement("div");
  65. boddie.style.position="fixed";
  66. boddie.style.top="0px";
  67. boddie.style.left="0px";
  68. boddie.style.overflow="visible";
  69. boddie.style.width="1px";
  70. boddie.style.height="1px";
  71. boddie.style.backgroundColor="transparent";
  72. boddie.style.zIndex="0";
  73. document.body.appendChild(boddie);
  74. set_width();
  75. for (i=0; i<bubbles; i++) {
  76. rats=createDiv("3px", "3px");
  77.  
  78. div=createDiv("auto", "auto");
  79. rats.appendChild(div);
  80. div=div.style;
  81. div.top="1px";
  82. div.left="0px";
  83. div.bottom="1px";
  84. div.right="0px";
  85. div.borderLeft="1px solid "+colours[3];
  86. div.borderRight="1px solid "+colours[1];
  87.  
  88. div=createDiv("auto", "auto");
  89. rats.appendChild(div);
  90. div=div.style;
  91. div.top="0px";
  92. div.left="1px";
  93. div.right="1px";
  94. div.bottom="0px"
  95. div.borderTop="1px solid "+colours[0];
  96. div.borderBottom="1px solid "+colours[2];
  97.  
  98. div=createDiv("auto", "auto");
  99. rats.appendChild(div);
  100. div=div.style;
  101. div.left="1px";
  102. div.right="1px";
  103. div.bottom="1px";
  104. div.top="1px";
  105. div.backgroundColor=colours[4];
  106. if (ie_version && ie_version<10) div.filter="alpha(opacity=50)";
  107. else div.opacity=0.5;
  108.  
  109. boddie.appendChild(rats);
  110. bubb[i]=rats.style;
  111. bubb[i].zIndex=(over_or_under=="over")?"1001":"0";
  112. }
  113. bubble();
  114. }}
  115.  
  116. function bubble() {
  117. var c;
  118. for (c=0; c<bubbles; c++) if (!bubby[c] && Math.random()<0.333) {
  119. bubb[c].left=(bubbx[c]=Math.floor(swide/6+Math.random()*swide/1.5)-10)+"px";
  120. bubb[c].top=(bubby[c]=shigh)+"px";
  121. bubb[c].width="3px";
  122. bubb[c].height="3px"
  123. bubb[c].visibility="visible";
  124. bubbs[c]=3;
  125. break;
  126. }
  127. for (c=0; c<bubbles; c++) if (bubby[c]) update_bubb(c);
  128. setTimeout("bubble()", 40);
  129. }
  130.  
  131. function update_bubb(i) {
  132. if (bubby[i]) {
  133. bubby[i]-=bubbs[i]/2+i%2;
  134. bubbx[i]+=(i%5-2)/5;
  135. if (bubby[i]>0 && bubbx[i]>0 && bubbx[i]<swide) {
  136. if (Math.random()<bubbs[i]/shigh*2 && bubbs[i]++<8) {
  137. bubb[i].width=bubbs[i]+"px";
  138. bubb[i].height=bubbs[i]+"px";
  139. }
  140. bubb[i].top=bubby[i]+"px";
  141. bubb[i].left=bubbx[i]+"px";
  142. }
  143. else {
  144. bubb[i].visibility="hidden";
  145. bubby[i]=0;
  146. return;
  147. }
  148. }
  149. }
  150.  
  151. window.onresize=set_width;
  152. function set_width() {
  153. var sw_min=999999;
  154. var sh_min=999999;
  155. if (document.documentElement && document.documentElement.clientWidth) {
  156. if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
  157. if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
  158. }
  159. if (typeof(self.innerWidth)=='number' && self.innerWidth) {
  160. if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
  161. if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
  162. }
  163. if (document.body.clientWidth) {
  164. if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
  165. if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
  166. }
  167. if (sw_min==999999 || sh_min==999999) {
  168. sw_min=800;
  169. sh_min=600;
  170. }
  171. swide=sw_min;
  172. shigh=sh_min;
  173. }
  174.  
  175. function createDiv(height, width) {
  176. var div=document.createElement("div");
  177. div.style.position="absolute";
  178. div.style.height=height;
  179. div.style.width=width;
  180. div.style.overflow="hidden";
  181. div.style.backgroundColor="transparent";
  182. return (div);
  183. }
  184. // ]]>
  185. </script>
  186.  
  187.  
  188. <!--TEXT THAT APPEARS WHEN HOVERING ON THE PICTURE CODE-->
  189.  
  190. <style>
  191. #box1 {
  192. float:left;
  193. font-size:25px;
  194. width:388px;
  195. height:200px;
  196. background-image:url("https://64.media.tumblr.com/81ac3b376472b93e238900b51b420a73/tumblr_p1mnq1tmij1wr66umo1_500.png");
  197. margin-left: 120px;
  198. margin-top: 90px;
  199. }
  200.  
  201. #text1{
  202. opacity: 0;
  203. transition: all 0.5s;
  204. margin: auto;
  205. }
  206. #box1:hover #text1{
  207. opacity: 1;
  208. }
  209. </style>
  210. <div id="box1">
  211. <div id="text1">holis rolis
  212. </div>
  213. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement