Open In App

Semantic-UI Browse Transition

Last Updated : 20 Feb, 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 browse transition.  

Semantic UI has a bunch of components for users to design web pages. An element from the page can appear and disappear in many different ways as per user requirements. A transition is an animation usually used to move content in or out of view and it can appear and disappear as part of a series. This method is used to control the way in which transition takes place between the two states of the element.

Syntax:

 $('.image').transition('browse');

Example 1: The below example illustrates the Semantic UI browse transition.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Semantic UI</title>
    <link href=
          rel="stylesheet" />
        integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
        crossorigin="anonymous">
    </script>
      
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h1 class="ui header green">GeeksforGeeks</h1>
        <strong>Semantic UI Browse Transitions</strong>    
      
        <div class="ui container">            
            <img class="ui image medium" 
                 src=
            <br>
            <button class="ui button">
                Click here!!
            </button>        
        </div>
    </center>
  
    <script>
        $('button').click(function () {
            $('.image').transition('browse');
        })
    </script>
</body>
</html>


Output:

Semantic-UI Browse Transition

Example 2: The following example demonstrates the browse transition with a colorful image.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Semantic UI</title>
    <link href=
          rel="stylesheet" />
        integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
        crossorigin="anonymous">
    </script>  
    
    <script src=
    </script>
</head>
  
<body>
    <center>
        <h1 class="ui header green">GeeksforGeeks</h1>
        <strong>Semantic UI Browse Transitions</strong>    
      
        <div class="ui container">        
            <img class="ui image medium" 
                 src=
            <br>
            <button class="ui button">
                Click here!!
            </button>        
        </div>
    </center>
  
    <script>
        $('button').click(function () {
            $('.image').transition('browse');
        })
    </script>
</body>
</html>


Output:

Semantic-UI Browse Transition

Semantic-UI Browse Transition

Reference: https://semantic-ui.com/modules/transition.html#browse



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

Similar Reads