Skip to content
Related Articles

Related Articles

Semantic-UI Sidebar Dimmed State

View Discussion
Improve Article
Save Article
  • Last Updated : 24 Feb, 2022

Semantic UI is a modern framework used in developing seamless designs for the website. It gives the user a lightweight experience with its components. It uses predefined CSS and jQuery to incorporate different frameworks.

Semantic UI Sidebar is used to place additional links so we can navigate to different positions of the web application with ease. The Sidebar element hides a part of the webpage under it to show the page.

Semantic UI SIdebar Dimmed State is used to dim a pusher. Pusher is the place where the webpage content is placed.

Semantic UI SIdebar Dimmed State Class:

  • dimmed: Add this class to make the pusher dimmed.

Syntax: Add the dimmed class to pusher as follows:

<div class="dimmed pusher">

Example: In the following example, we have added the dimmed class to the pusher.


<!DOCTYPE html>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" 
          content="IE=edge" />
    <meta name="viewport" 
          content="width=device-width, initial-scale=1.0" />
    <link href=
          rel="stylesheet" />
    <script src=
    <script src=
    <div class="ui container">
        <div class="ui sidebar inverted vertical menu">
            <a class="item">
                Data Structures
            <a class="item">
            <a class="item">
                Machine Learning
            <button class="ui button" onclick="openSidebar()">
              Close Sidebar</button>
        <div class="dimmed pusher">
                <div class="ui header green">
                    Semantic UI Sidebar Dimmed State
            <div class="ui segment">
                <h1>Welcome to GeeksforGeeks</h1>
                <p>Find the best programming tutorials here.</p>
                <button onclick="openSidebar()">Open Sidebar</button>
        const openSidebar = () => {


Semantic-UI Sidebar Dimmed State

Semantic-UI Sidebar Dimmed State


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!