MediaWiki:Timeless.js: Revizyonlar arasındaki fark
Fen Ansiklopedisi sitesinden
(Sayfa boşaltıldı) Etiketler: Boşaltma Elle geri alma |
Değişiklik özeti yok Etiket: Geri alındı |
||
1. satır: | 1. satır: | ||
$(function () { | |||
'use strict'; | |||
// Give Active Class | |||
$('.item').first().addClass('active'); | |||
// Show First Info | |||
$('.info').first().show().animate({width: '40%'}); | |||
// Show Info On Click | |||
$('.item').click(function () { | |||
$(this).addClass("active").siblings('.item').removeClass('active'); | |||
$(this).next().show().animate({width: '40%'}).siblings('.info').animate({width: 0}, function () { | |||
$(this).hide(); | |||
}); | |||
}); | |||
}); |
15.35, 8 Ekim 2021 tarihindeki hâli
$(function () {
'use strict';
// Give Active Class
$('.item').first().addClass('active');
// Show First Info
$('.info').first().show().animate({width: '40%'});
// Show Info On Click
$('.item').click(function () {
$(this).addClass("active").siblings('.item').removeClass('active');
$(this).next().show().animate({width: '40%'}).siblings('.info').animate({width: 0}, function () {
$(this).hide();
});
});
});