Open In App

Semantic-UI Reveal Active State

Last Updated : 04 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. In this article, we are going to learn about Reveal Active State. 

It is equipped with pre-built semantic components that help create responsive layouts using user-friendly HTML, and it uses predefined CSS and jQuery to incorporate different frameworks.

A reveal displays additional content in place of previous content when activated. 

Semantic-UI Reveal Active State Class:

  • active: The active class allows us to show the hidden contents programmatically.

Syntax:

<div class="ui active move left reveal">
    ...
</div>

The below example illustrates the Semantic-UI Reveal Active State:

Example 1:

HTML




<!DOCTYPE html>
<html>
 
<head>
    <link href=
          rel="stylesheet" />
</head>
 
<body>
    <center>
        <h1 class="ui header green">GeeksforGeeks</h1>
        <strong> Semantic-UI </strong>
        <h3 class="ui dividing header">Reveal Disabled State</h3>
    </center>
    <div class="ui active move up reveal">
        <div class="visible content">
            <img src=
                 class="ui small image">
        </div>
        <div class="hidden content">
            <img src=
                 class="ui small image">
        </div>
    </div>
</body>
 
</html>


Output:

Example 2:

HTML




<!DOCTYPE html>
<html>
 
<head>
    <link href=
          rel="stylesheet" />
</head>
 
<body>
    <center>
        <h1 class="ui header green">GeeksforGeeks</h1>
        <strong> Semantic-UI </strong>
        <h3 class="ui dividing header">
          Semantic-UI Reveal Active State</h3>
        <div class="ui active move up reveal">
            <div class="visible content">
                <img src=
                    class="ui small image">
            </div>
            <div class="hidden content">
                <img src=
                    class="ui large image">
            </div>
        </div>
        <div class="ui active move up reveal">
            <div class="visible content">
                <img src=
                    class="ui small image">
            </div>
            <div class="hidden content">
                <img src=
                    class="ui small image">
            </div>
        </div>
        <div class="ui active move up reveal">
            <div class="visible content">
                <img src=
                    class="ui small image">
            </div>
            <div class="hidden content">
                <img src=
                    class="ui large image">
            </div>
        </div>
    </center>
</body>
 
</html>


Output:

Reference: https://semantic-ui.com/elements/reveal.html#active



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads