Open In App

Semantic-UI List Animated Variation

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 looks more amazing. It uses a class to add CSS to the elements.

Semantic-UI list provides  us different variations of the list, like Horizontal, Inverted, Selection, Animated, Relaxed, Divided, Celled, and Size variants. Here we will learn about Semantic-UI List Animated Variation is used to apply some animation effect on a selected item of the list. 

Semantic-UI List Animated Variation Class:

  • animated: This class is used to add animation effect to the list items on mouse hover.

Syntax:

<div class="ui animated list">
    <div class="item"> Contents... </div>
    ...
</div>

Example 1: In this example, we are creating list of items with the animated variation.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI List Animated Variation
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI List Animated Variation</h3>
  
        <div class="ui animated link list">
            <div class="active item">GeeksforGeeks</div>
            <a class="item">Data Structure</a>
            <a class="item">Algorithm</a>
            <a class="item">Interview Preparation</a>
            <a class="item">Competitive Programming</a>
            <a class="item">Machine Learning</a>
            <a class="item">Web Development</a>
        </div>
    </div>
</body>
  
</html>


Output:

Semantic-UI List Animated Variation

Semantic-UI List Animated Variation

Example 2: In this example, we are creating list of items with the animated variation.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI List Animated Variation
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI List Animated Variation</h3>
  
        <div class="ui animated list">
            <div class="item">
                <img class="ui avatar image" src=
                <div class="content">
                    <div class="header">GeeksforGeeks</div>
                    <div class="description">
                        A Computer Science portal for geeks. It contains 
                        well written, well thought and well explained
                        computer science and programming articles
                    </div>
                </div>
            </div>
            <div class="item">
                <img class="ui avatar image" src=
                <div class="content">
                    <div class="header">Data Structure</div>
                    <div class="description">
                        A data structure is a particular way of 
                        organizing data in a computer so that it 
                        can be used effectively.
                    </div>
                </div>
            </div>
            <div class="item">
                <img class="ui avatar image" src=
                <div class="content">
                    <div class="header">Algorithm</div>
                    <div class="description">
                        The word Algorithm means “a process or set 
                        of rules to be followed in calculations or 
                        other problem-solving operations”.
                    </div>
                </div>
            </div>
            <div class="item">
                <img class="ui avatar image" src=
                <div class="content">
                    <div class="header">Web Development</div>
                    <div class="description">
                        Web development refers to the building, 
                        creating, and maintaining of websites. 
                        It includes aspects such as web design, 
                        web publishing, ...
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
  
</html>


Output:

Semantic-UI List Animated Variation

Semantic-UI List Animated Variation

Reference: https://semantic-ui.com/elements/list.html#animated



Last Updated : 27 Feb, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads