Scrollbar in Rainbow Colors

:root {
    --neon-gradient: linear-gradient(
        45deg, 
        #ff006e, 
        #8b00ff, 
        #00f5ff, 
        #00ff88, 
        #ffaa00, 
        #ff006e);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 0, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-gradient);
    background-size: 200% 200%;
    animation: rainbow-shift 5s ease infinite;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(139, 0, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.8);
}

How to integrate CSS-Styles in adoc Studio

  1. Create a new product style (recommended)

  • Duplicate an existing product style

  • Integrate the new CSS code into the duplicated stylesheet

This variant ensures a consistent appearance and simplifies subsequent changes, as all documents use the same centrally maintained style.

  1. Project-specific stylesheet

  • Create a styles.css file in the project.

  • Above the document title of each AsciiDoc document concerned, write the line

:stylesheet: styles.css

Learn more in our CSS documentation in the user manual.