Keileon

Dismissable Pagedoll

Sep 14th, 2023 (edited)
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.81 KB | None | 0 0
  1. <!-- Ideally, put this before all of your other code, or at least code that adds content to the page instead of just styling it. -->
  2. <div id="pagedoll" class="carousel" data-ride="false" data-pause="true">
  3.   <!-- Indicators -->
  4.     <ul class="carousel-indicators">
  5.         <li data-target="#pagedoll" data-slide-to="0" class="active"></li>
  6.         <li data-target="#pagedoll" data-slide-to="1"></li>
  7.     </ul>
  8.  
  9.     <!-- Wrapper for slides -->
  10.         <!-- Change "left" to "right" to change what side the pagedoll is on! -->
  11.     <div class="carousel-inner btn btn-outline-transparent p-0 hidden-md-down" style="max-width:15%; position:fixed; bottom:5px; left:5px; z-index:900;">
  12.         <div class="carousel-item active">
  13.             <!-- Pagedoll Source -->
  14.             <img src="https://via.placeholder.com/200">
  15.                 <!-- Optional: Add style="pointer-events:none;" to the pagedoll image if it blocks links behind it. -->
  16.         </div>
  17.  
  18.         <div class="carousel-item">
  19.             <!-- Blank Image - DO NOT DELETE -->
  20.                 <!-- You CAN replace this image if you want a toggle or something instead, but this is why it can hide. -->
  21.             <img src="https://f2.toyhou.se/file/f2-toyhou-se/images/69285236_y1EjlGNUDtSLcxE.png?1691713755" style="pointer-events:none;">
  22.         </div>
  23.     </div>
  24.  
  25.     <!-- Toggle Control -->
  26.     <a class="btn btn-outline-secondary carousel-control-prev" style="position: absolute; top: -70px; left: 80px; max-height: 40px; max-width: 200px;"
  27.            href="#pagedoll" data-slide="prev">
  28.         <!-- Change text-danger into whatever bootstrap color you want, or apply a color argument in style. -->
  29.         <span class="carousel-control-text text-danger" style="z-index:900; width:500px; font-style:italic;">Click to show/hide pagedoll</span>
  30.     </a>
  31. </div>
Advertisement
Add Comment
Please, Sign In to add comment