StrawbunnizJAL

2. Horizontal Bot Cards (Slide-In Animation)

Jun 25th, 2026 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 8.49 KB | Source Code | 0 0
  1. 2. Horizontal Bot Cards (Slide-In Animation)
  2.  
  3. <style>
  4. /* Creates a low-opacity image container locked strictly to the right side */
  5. .css-1s5evre::before {
  6.   content: "" !important;
  7.   position: absolute !important;
  8.   top: 0;
  9.   right: 0;
  10.   width: 50%; /* Covers exactly the right half where the text boxes are */
  11.   height: 100%;
  12.   opacity: 0.15; /* Perfectly controls the low opacity of your image */
  13.   background-image: url("https://files.catbox.moe/xfpsnm.png") !important;
  14.   background-size: contain !important;
  15.   background-position: bottom right !important;
  16.   background-repeat: no-repeat !important;
  17.   z-index: 1; /* Sits cleanly behind the text so it doesn't block readability */
  18.   pointer-events: none; /* Prevents the image from blocking clicks/text selection */
  19. }
  20. </style>
  21.  
  22. <style>
  23. /* code by @Strawbunniz */
  24. /* setting botcard backgrounds to transparent */
  25. .pp-cc-wrapper, .pp-cc-wrapper>*:not(.css-1s5evre){
  26.     background: transparent !important;
  27. }
  28.  
  29. /* adjusting botcard autopopulated layout and centering */
  30. .pp-cc-list-container{
  31.     display: flex !important;
  32.     flex-flow: row wrap;
  33.     justify-content: center !important;
  34.     align-items: center !important;
  35.     width: 100% !important;
  36. }
  37.  
  38. /* sizing of the botcard */
  39. .pp-cc-wrapper{
  40.     flex: 0 1 550px;
  41.     width: 550px;    
  42.     height: 380px; /* Increased slightly to account for the bubble at the bottom */
  43.     margin-left: auto !important;  
  44.     margin-right: auto !important;
  45.     display: block !important;
  46.     transition: all 300ms ease;
  47.     position: relative;
  48. }
  49.  
  50. .css-1s5evre a{
  51.     display: contents;
  52. }
  53.  
  54. .css-1s5evre{
  55.     background: black;
  56.     display: grid;
  57.     grid-template-columns: 1.5fr 1fr;
  58.     grid-template-rows: 1fr 1fr;
  59.     gap: 0px;
  60.     margin: 15px auto !important;
  61.     border-radius: 10px;
  62.     outline: 1px solid lightgray;
  63.     outline-offset: -5px;
  64.     position: relative;
  65.     z-index: 2;
  66.     overflow: hidden; /* Prevents text from leaking outside before sliding in */
  67. }
  68. /* "Hover to reveal details" Placeholder text setup (Shining & Blinking) */
  69. .css-1s5evre::after {
  70.     content: "hover to reveal details";
  71.     position: absolute;
  72.     right: 0;
  73.     top: 0;
  74.     width: 40%; /* Aligns over the right side text pane */
  75.     height: 100%;
  76.     background: transparent;
  77.     /* Shining effect using a linear gradient on the text */
  78.     background-image: linear-gradient(to right, #a0a0a0 20%, #ffffff 40%, #ffffff 60%, #a0a0a0 80%);
  79.     background-size: 200% auto;
  80.     -webkit-background-clip: text;
  81.     -webkit-text-fill-color: transparent;
  82.     background-clip: text;
  83.     display: flex;
  84.     align-items: center;
  85.     justify-content: center;
  86.     font-size: 14px;
  87.     font-family: inherit;
  88.     z-index: 15;
  89.     /* Combines the slide/fade transitions with the loops for shining and blinking */
  90.     transition: transform 400ms ease, opacity 300ms ease;
  91.     animation: shine 3s linear infinite, blink 2s ease-in-out infinite;
  92.     pointer-events: none;
  93.     padding: 10px;
  94.     box-sizing: border-box;
  95.     text-align: center;
  96. }
  97. /* Hide the placeholder text panel on hover and pause animations */
  98. .pp-cc-wrapper:hover .css-1s5evre::after {
  99.     transform: translateX(100%);
  100.     opacity: 0;
  101.     animation: none;
  102. }
  103. /* Smooth Shining Animation */
  104. @keyframes shine {
  105.     to {
  106.         background-position: 200% center;
  107.     }
  108. }
  109. /* Smooth Blinking Animation */
  110. @keyframes blink {
  111.     0%, 100% {
  112.         opacity: 0.4;
  113.     }
  114.     50% {
  115.         opacity: 1;
  116.     }
  117. }
  118. /* botcard image container */
  119. .css-1q7rmf0 {
  120.     grid-area: 1 / 1 / 3 / 2;
  121.     margin: 2px;
  122.     border-radius: 0;
  123.     overflow: visible;
  124.     position: relative;
  125.     mask-image: linear-gradient(to right, #000 50%, transparent);
  126.     -webkit-mask-image: linear-gradient(to right, #000 50%, transparent);
  127. }
  128.  
  129. /* Bot Name */
  130. .pp-cc-name {
  131.     position: absolute;      
  132.     left: 10px;
  133.     top: 20px;
  134.     z-index: 10;              
  135.     max-width: 150px;
  136.     color: #ffffff;
  137.     font-size: 25px;
  138.     writing-mode: vertical-rl;  
  139.     transform: rotate(180deg);  
  140.     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  141.     font-weight: bold;
  142.     pointer-events: none;
  143.     font-family: "Times New Roman", Times, serif;      
  144. }
  145.  
  146. /* Bot card Description container & bot tags container */
  147. .profile-character-card-description-box, .pp-cc-tags{
  148.     max-height: 150px;
  149.     height: 100%;
  150.     overflow: hidden auto;
  151. }
  152.  
  153. /* Bot card Description setup for sliding animation */
  154. .profile-character-card-description-box {
  155.     grid-area: 1 / 2 / 2 / 3;
  156.     margin: 1px;
  157.     z-index: 5;
  158.     opacity: 0;
  159.     transform: translateX(40px);
  160.     transition: transform 400ms ease, opacity 400ms ease;
  161. }
  162.  
  163. /* Reveal description on hover */
  164. .pp-cc-wrapper:hover .profile-character-card-description-box {
  165.     opacity: 1;
  166.     transform: translateX(0);
  167. }
  168.  
  169. /* botcard tags container */
  170. .pp-cc-tags{
  171.     grid-area: 2 / 2 / 3 / 3;
  172.     margin-bottom: 0;
  173.     padding-bottom: 1rem;
  174.     position: static !important; /* CHANGED: Keeps absolute children from scrolling */
  175. }
  176.  
  177. /* Standard tags hover movement (excluding limitless) */
  178. .pp-cc-tags-wrap-regular, .pp-cc-tags-wrap-custom span {
  179.     display: inline-block;
  180.     opacity: 0;
  181.     transform: translateX(40px);
  182.     transition: transform 400ms ease, opacity 400ms ease;
  183. }
  184.  
  185. /* Smoothly reveals regular tags on hover */
  186. .pp-cc-wrapper:hover .pp-cc-tags-wrap-regular,
  187. .pp-cc-wrapper:hover .pp-cc-tags-wrap-custom span {
  188.     opacity: 1;
  189.     transform: translateX(0);
  190. }
  191.  
  192. .pp-cc-tags-item {
  193.     color: white;
  194.     border-radius: 30px;
  195. }
  196.  
  197. /* getting rid of the star separator and username */
  198. .pp-cc-star-line, .pp-cc-creator-name{
  199.     display: none;
  200. }
  201.  
  202. /* botcard effect on hover */
  203. .pp-cc-wrapper:hover{
  204.     transform: scale(1.05);
  205. }
  206.  
  207. .pp-cc-avatar {
  208.     width: 100%;
  209.     height: 100%;
  210.     object-fit: cover;
  211.     border-radius: 10px;
  212.     outline: 1px solid lightgray;
  213.     outline-offset: -5px;
  214. }
  215.  
  216. .pp-cc-description p {
  217.     /* style here */
  218. }
  219.  
  220. .pp-cc-description p::first-letter {
  221.     font-size: 30px;
  222.     font-family: cursive;
  223. }
  224.  
  225. /* Limitless Tag Styling - Isolated completely from the animations */
  226. .pp-cc-tags-wrap:has(.pp-tag-limitless) {
  227.     position: absolute;
  228.     bottom: 5px;
  229.     right: 15px;
  230.     z-index: 20 !important; /* Raised to remain perfectly visible over the gray background block */
  231.     pointer-events: none;
  232. }
  233.  
  234. .pp-tag-limitless {
  235.     position: absolute;
  236.     bottom: 5px;
  237.     right: 45px;
  238.     z-index: 20 !important;
  239.     text-transform: uppercase;
  240.     opacity: 0.25;
  241.     font-weight: bold;
  242.     font-size: 25px;
  243.     color: white;
  244. }
  245.  
  246. /* --- CHAT RIBBON POSITIONING AND BADGE SHAPE --- */
  247. .profile-character-card-stats-box{
  248.     position:absolute !important;
  249.     right:35px !important;
  250.     Top:340px !important;
  251.     left:auto !important;
  252.     transform:none !important;
  253.     z-index:10 !important;
  254.     width:auto !important;
  255. }
  256. /* Outer Container Layout Reset */
  257. .pp-cc-ribbon, .profile-character-card-ribbon {
  258.     position: relative !important;
  259.     top: auto !important;
  260.     right: auto !important;
  261.     left: auto !important;
  262.     bottom: auto !important;
  263. }
  264.  
  265. /* The Dark Badge Shape */
  266. .pp-cc-ribbon-wrap, .profile-character-card-ribbon-wrap {
  267.     background: rgba(15, 15, 15, 0.85) !important;
  268.     padding: 4px 10px !important;
  269.     border-radius: 8px !important;
  270.     clip-path: none !important;
  271.     -webkit-clip-path: none !important;
  272.     border: 1px solid rgba(255, 255, 255, 0.15) !important;
  273. }
  274.  
  275. /* Text Container adjustment */
  276. .pp-cc-chats, .profile-character-card-chats- {
  277.     display: flex !important;
  278.     align-items: center !important;
  279.     justify-content: center !important;
  280.     gap: 4px;
  281.     color: #ffffff !important;
  282. }
  283.  
  284. /* Chat text size and color */
  285. .pp-cc-chats-count, .profile-character-card-chats-count {
  286.     color: #ffffff !important;
  287.     font-weight: 600;
  288.     font-size: 13px;
  289.     font-family: sans-serif;
  290. }
  291. /* Cleaning ๐Ÿงผ up */
  292. .pp-cc-wrapper:hover, .pp-cc-wrapper[data-hover]{box-shadow:none}
  293. .css-1s5evre a{display:contents}
  294. .css-1awld45,.css-1cui3us,.css-1wqmh16,.css-1x04uxb,.css-5v5qgx,.css-8828od,.css-nip9dx,.css-xrg4vd,.pp-cc-creator-name{display:none}
  295. .pp-cc-wrapper>*{box-shadow:none!important}
  296. .pp-cc-star-line{visibility:hidden}
  297. div:has(> .css-1s5evre),div:has(~ .css-1s5evre){background:0 0!important}
  298. .css-0,.css-1henxb,.css-effh3d{background:0 0!important}
  299. ._content_1chl9_11 {box-shadow:none;background:0 0;}
  300. .pp-cc-tokens-count, .profile-character-card-box {
  301.     display: none;
  302. }
  303. </style>
Tags: Janitor AI
Add Comment
Please, Sign In to add comment