JSFiddle - React, Tailwind, and code Playground
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Intranet SMT</title>
<link type="text/css" href="expand.css" rel="stylesheet"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="expand.js"></script>
</head>
<body>
<ul id="expand">
<li>
<h2>Drupal</h2>
<img src="imagens/image1.gif" alt="" width="80" height="80"/>
<p>Drupal is a free and open source[1] Content Management System (CMS) written in PHP. It is used as a back-end system for many different types of websites, ranging from small personal blogs to large corporate and political sites. It is distributed under the GNU GPL.</p>
</li>
<li>
<h2>Expression Engine</h2>
<img src="imagens/image2.jpeg" alt="" width="80" height="80" />
<p>EllisLab is a software developer based in Bend, Oregon which develops applications written in PHP. The company is privately owned and has to date accepted no venture capital funding of any kind. Since the company's founding in January 2002.</p>
</li>
<li>
<h2>Frog CMS</h2>
<img src="imagens/image3.jpg" alt="" width="80" height="80" />
<p>Frog CMS is an open source content management system originally developed by the company Philippe Archambault. The design decision taken from its start was to use PHP5 as the language for the software, along with a MySQL database backend, although it also has support for SQLite (version 3). It is a port of the Ruby on Rails CMS known as Radiant, although Frog has begun to take its own development direction.</p>
</li>
<li>
<h2>Joomla!</h2>
<img...
CSS
*{
margin:0;
padding:0;
list-style:none;
}
div{
overflow:hidden;
width:230px;
}
html{
background:#ccc;
}
#expand li{
float:left;
width:50px;
height:300px;
margin:2px;
overflow:hidden;
border:1px solid #555;
-moz-border-radius:10px;
-webkit-border-radius:10px;
}
#expand img{
border:3px solid #686;
background: #aaa;
padding:3px;
margin:3px 5px;
display:block;
}
#expand p{
font: normal normal normal 11px/1.4 arial,sans-serif;
padding:3px 12px 0 5px;
text-align: left;
margin:5px 0 0 3px;
}
#expand h2{
font:bold italic normal 15px/1 georgia,serif;
margin:3px 0 0 25px; /* altura 0 0 paragrafo */
text-align: left;
}
#expand li:{
background: #000;
}
JavaScript
$(document).ready(function() {
var $item = $('#expand li');
var alturaMax = 100;
$item.wrapInner('<div>').css({
width: '102px' /* largura da caixa */
,
height: '117px' /* altura da caixa */
}).hover(function() {
altura = $(this).children('div').height();
$(this).stop().animate({
width: '222px' /* largura da caixa ao expandir */
,
height: altura + 5 + 'px' /* altura da caixa ao expandir */
});
}, function() {
$(this).stop().animate({
width: '102px' /* largura após expanção */
,
height: '117px' /* altura após expanção */
});
});
});