/* Write [.focus] above your text to add the hover effect to this section */
.focus p {
line-height: 1.8;
transition: all 0.3s ease;
position: relative;
}
.focus p:hover {
transform: translateX(10px);
padding-left: 20px;
border-left: 3px solid black;
}Hover Effect in the Text
Add an interactive hover effect to paragraphs that shifts text and adds a left border accent. Use the [.focus] class to enable this effect on specific sections.
Screenshots
1 / 2
Learn more about CSS styling
Learn how to integrate CSS styles in adoc Studio in our documentation.