Advertisement
greekish24

POP UP CODE REFERENCE

Feb 8th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.40 KB | None | 0 0
  1. =========================== CSS REFERENCE ==========================
  2.  
  3.  
  4.  
  5. -------------------- FIXED DIV CODE ----------------
  6. (SETS UP CODE FOUNDATION)
  7. #quince{
  8. position: absolute;
  9. top: 514px;
  10. left: 800px;
  11. width: 220px;
  12. height: 160px;
  13. padding:10px;
  14. word-spacing:1px;
  15. letter-spacing:0px;
  16. background-color: #38283d;
  17. text-align:center;
  18. z-index:1;
  19. overflow:hidden;
  20. }
  21.  
  22. -------------- HOVER EFFECT ------------------
  23.  
  24. (HOVER EFFECT FOR AN IMG OR JUST AN A HREF)
  25. .hovereffect2 img {
  26.  
  27. display: inline-block;
  28. position:relative;
  29. -webkit-transition:all .4s linear;
  30. transition:all .4s linear;
  31. }
  32.  
  33. .hovereffect2 h3 {
  34. top:60px;
  35. text-align:center;
  36. position:relative;
  37. background: #01a8d6;
  38. -webkit-transform:translatey(-100px);
  39. -ms-transform:translatey(-100px);
  40. transform:translatey(-100px);
  41. -webkit-transition:all .2s ease-in-out;
  42. transition:all .2s ease-in-out;
  43. }
  44.  
  45. .hovereffect2 a.info {
  46. text-decoration:none;
  47. display:inline-block;
  48. background-color:transparent;
  49. opacity:0;
  50. filter:alpha(opacity=0);
  51. -webkit-transition:all .2s ease-in-out;
  52. transition:all .2s ease-in-out;
  53. margin:100px 0 0;
  54. padding:7px 14px;
  55. }
  56.  
  57. .hovereffect2 a.info:hover {
  58. box-shadow:0 0 5px #fff;
  59. }
  60.  
  61. .hovereffect2:hover img {
  62. -ms-transform:scale(1);
  63. -webkit-transform:scale(1);
  64. transform:scale(1);
  65. }
  66.  
  67. .hovereffect2:hover .overlay {
  68. opacity:1;
  69. filter:alpha(opacity=100);
  70. }
  71.  
  72. .hovereffect2:hover h3,.hovereffect2:hover a.info {
  73. opacity:1;
  74. filter:alpha(opacity=100);
  75. -ms-transform:translatey(0);
  76. -webkit-transform:translatey(0);
  77. transform:translatey(0);
  78. }
  79.  
  80. .hovereffect2:hover a.info {
  81. -webkit-transition-delay:.2s;
  82. transition-delay:.2s;
  83. }
  84.  
  85. ------------- a href coding for link --------------------
  86.  
  87. (take out the image aspect of this coding and just apply it to the link itself when working inside of it)
  88. (NO WIDTH OR HEIGHT ON .CLASS WITHOUT TARGET, ONLY PUT WIDTH AND HEIGHT ON TARGET CSS CODE)
  89.  
  90. .editorthree {
  91. position: fixed;
  92. top: 514px;
  93. left: 684px;
  94. width:0px;
  95. height:0px;
  96. overflow:hidden;
  97. z-index:2222;
  98. opacity:0;
  99. filter: alpha(opacity=0.0);
  100. background-color: #38283d;
  101. transition: all 0.7s ease-out;
  102. -moz-transition: all 0.7s ease-out;
  103. -webkit-transition: all 0.7s ease-out;}
  104.  
  105. .editorthree:target {
  106. top: 200px;
  107. left: 350px;
  108. width: 550px;
  109. height: 200px;
  110. padding:10px;
  111. opacity:1;
  112. filter:alpha(opacity1);
  113. background-color: #38283d;
  114. text-align: left;
  115. -webkit-box-shadow: -1px 4px 100px 500px rgba(0, 0, 0,0.33);
  116. -moz-box-shadow: -1px 4px 100px 500px rgba(0, 0, 0,0.33);
  117. box-shadow: -1px 4px 100px 500px rgba(0, 0, 0,0.33);
  118. }
  119. --------------------------------- img aspect of code which doesn't apply to what I am trying to do but to have it wouldn't hurt----
  120.  
  121. .most img {
  122. display: inline-block;
  123. position:relative;
  124. -webkit-transition:all .4s linear;
  125. transition:all .4s linear;
  126. }
  127.  
  128. .most img:hover {
  129. -webkit-filter: grayscale(100%);
  130. filter: grayscale(100%);
  131. }
  132.  
  133.  
  134. ============================= HTML REFERENCE =====================================
  135.  
  136. <div ID="quince"> <!-----FOUNDATION OF THE DISPLAY WINDOW UPON FIRST LOOK------->
  137.  
  138. <!----- WHEN YOU HOVER OVER THE PHOTO/AHREF AND IT DOES THE GREY EFFECT------>
  139. <div class="hovereffect2" style="display:inline-block;">
  140. <a href="#editorthree" title="click" class="most"><img class="img-responsive" width="210px" height="150px" style="background-color:#91718c; margin:5px;" src="https://i.imgur.com/REnqcLv.gif"></a>
  141. <div class="overlay">
  142. <h3>enchantress</h3>
  143. </div>
  144. </div>
  145.  
  146. </div>
  147.  
  148. <!----THE #DIV BELOW IS CONNECTED TO THE A-REF ABOVE, IT IS NOT FEATURED IN THE CSS CODING BUT ONLY CONNECTED TO THE .HOVEREFFECT2 DIV BOX, KEEEEP DAT IN MIND BETCH------> <!----------THESE CODES ARE FOR THE POP UP WINDOW CODE, A HREF FIRST FOR THE CLOSE BOX, ANYTHING AFTER THESE DIVS CAN BE EDITED ANYWAY WITHIN THE HTML-------------->
  149. <div id="editorthree" class="editorthree">
  150.  
  151. <a href="#" style="display:block; margin:2px; text-align:right; backgrond-color:#000000;">✖ close</a>
  152.  
  153. <h4>enchantress</h4>
  154.  
  155. <div style="float:left; padding:5px; width: 260px; height: 130px; background-color: #2e101d; border-top:1px solid #57262a; border-bottom:1px solid #57262a; margin: 14px 2px 2px 2px; overflow: auto;text-align:justify;">
  156.  
  157. <h2>guidelines and about</h2>
  158. </br>
  159.  
  160. <first>A</first>ll I ask is that you read and sign ALL rules thoroughly and have patience with all our staff. We want to help you and we're here to help you.<br><br>Please have patience with us all, we're doing our best to get things done in a timely manner.<br><br>
  161.  
  162. <b>Name:</b> Enchantress.<br>
  163. <strong>Title:</strong> Webmaster/Editor.<br>
  164. <tt>Duties:</tt> Editing, coding, helping anyone with codes if they need it, & helping J and HQ with anything to keep the site running smoothly.<br>
  165. <b>Editing Software:</b> Photoshop CC.<br>
  166. <strong>Strengths:</strong> doorknockers, extra & simple edited defaults, headlines, manips, main layouts,<br>
  167. <tt>Weakness:</tt> textures, psds, blog layouts, crackships .<br>
  168. <b>Years in RP:</b> 12 years
  169. <br><br>
  170. 1.) Please do add credit to all photos made by me.<br>
  171. 2.) Do <b>not</b> copy, steal or redistribute to anyone. <br>
  172. 3.) Respect breeds respect, so please always be respectful of your editor. <br>
  173. 4.) Keep all edits public and credited, thanks! <br>
  174.  
  175. </div>
  176.  
  177. <div style="float:right; padding:5px; width: 260px; height: 130px; background-color: #2e101d; border-top:1px solid #57262a; border-bottom:1px solid #57262a; margin: 14px 2px 2px 2px; overflow: auto;text-align:justify;">
  178.  
  179. <h3>monthly custom deals</h3>
  180. </br>
  181.  
  182. <first>L</first>orem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum..<br><br>
  183.  
  184. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  185.  
  186. </div>
  187. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement