Stylization
You can familiarize yourself with the CSS classes and data attributes used in the Readmore.js plugin, as well as their descriptions. These classes and attributes will help you style elements and control their behavior when expanding and collapsing content.
- Applied to the container of the button that manages the «Read More» or «Close» actions.
- Serves as a wrapper for the button.
- Assigned to the button that allows the user to expand or collapse the content.
- Manages the styles of the button itself.
Used if the CSS animation mode animationMode: 'css'
is enabled.
- Added to create animations through CSS.
Applied to the «Read More» or «Close» button. Used to track the button's state.
The attribute stores the button state:
collapsed
— the button is in the collapsed state.expanded
— the button is in the expanded state.
Applied to the element containing the content. Helps track the current state of the content (collapsed or expanded).
The attribute manages the content block's state:
collapsed
— the block is collapsed.expanded
— the block is expanded.