Hello readers, Today in my block we will discuss a plugin i.e Tabion that is used to create Tab Accordion inside a website using METRO UI.
Here, I have tried to create Accordion using Metro UI. I have applied animation to the tab-content div.
To the first label, I have applied animation to it which would make the content div to rotate in up left direction.
To the second label, I have applied bounce-in animation to the div and further to the last label, the content div would flip in y-direction.
I have used the Tabion.css and animate.css within my HTML page.
Below is the code for it :-
<!DOCTYPE html>
<html>
<head>
<title>
Accordin Using METRO UI
</title>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<!-- TabionCSS Pack -->
<link rel="stylesheet" href="css/tabion-css.css" type="text/css" />
<!-- CSS3 Animation -->
<link rel="stylesheet" href="css/animate-custom.css" type="text/css" />
<!-- Font Awesome -->
<link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
<!-- IE 8 Works with Hover only -->
<!--[if lt IE 9]>
<link rel="stylesheet" href="css/tabion-css-ie8.css" type="text/css" />
<![endif]-->
</head>
<body>
<div class="container">
<!-- START TABION -->
<ul class="tabion height-500">
<!-- Start Tab Area 1 -->
<li>
<input type="radio" name="tabion" id="tab11" class="none">
<div>
<!-- Start Tab Button -->
<label for="tab11" class="tabtile tabtile-small solid-blue-2 hovershadow-blue light-text">
<i class="icon-group icon-3x"></i>
<span class="light-text">Team</span>
</label>
<!-- End Tab Button -->
<!-- Start Tab Content -->
<div class="tab-content animated tab-rotateInUpLeft solid-blue-2 light-text pos-left-100 height-470">
<p class="title">Tab Content</p>
<p class="closebt">
<label for="close_tabion">
<i class="icon-remove icon-2x"></i>
</label>
</p>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. </p>
</div>
<!-- End Tab Content -->
</div>
</li>
<!-- End Tab Area 1 -->
<!-- Start Tab Area 2 -->
<li>
<input type="radio" name="tabion" id="tab12" class="none">
<div>
<!-- Start Tab Button -->
<label class="tabtile tabtile-small solid-red-2 hovershadow-red light-text pos-top-100" for="tab12">
<i class="icon-cloud icon-3x"></i>
<span class="light-text">Backup</span>
</label>
<!-- End Tab Button -->
<!-- Start Tab Content -->
<div class="tab-content animated tab-bounceIn solid-red-2 light-text pos-left-100 height-470">
<p class="title">Tab Content</p>
<p class="closebt">
<label for="close_tabion">
<i class="icon-remove icon-2x"></i>
</label>
</p>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. </p>
</div>
<!-- End Tab Content -->
</div>
</li>
<!-- End Tab Area 2-->
<li>
<input type="radio" name="tabion" id="tab13" class="none">
<div>
<!-- Start Tab Button -->
<label class="tabtile tabtile-small solid-orange-2 hovershadow-orange light-text pos-top-200" for="tab13">
<i class="icon-comments icon-3x"></i>
<span class="light-text">Discuss</span>
</label>
<!-- End Tab Button -->
<!-- Start Tab Content -->
<div class="tab-content animated tab-flipInY solid-orange-2 light-text pos-left-100 height-470sssss">
<p class="title">Tab Content</p>
<p class="closebt">
<label for="close_tabion">
<i class="icon-remove icon-2x"></i>
</label>
</p>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. </p>
</div>
<!-- End Tab Content -->
</div>
</li>
<!-- End Tab Area 2-->
</ul>
<!-- END TABION -->
</div>
</body>
</html>
Conclusion:-
Hence, I have created Accordion using Tabion Plugin in Metro UI.
Note:- The above blog will run on all modern browsers.
0 Comment(s)