базовые
иерархические
базовые фильтры
фильтр контента
фильтр видимости
* {
margin
:
0
;
padding
}
.a {
height
100px
width
25px
background-color
#3BA9DE
.b {
#852E76
#button {
cursor
pointer
border-radius:
5px
#E2E2E2
text-align
center
line-height
font-size
26px
color
font-weight
bold
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
src
"https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"
></
</
body
div
id
"d0"
class
"a"
"d1"
"button"
>OK</
function funAnimate0() {
$('#d0').animate({'width': '600px' }, 3000);
$('#d0').animate({'width': '100px' }, 3000);
function funAnimate1() {
$('#d1').animate({'width': '400px' }, 3000);
$('#d1').animate({'width': '100px' }, 3000);
$(document).ready(function() {
setInterval('funAnimate0()', 0);
setInterval('funAnimate1()', 0);
$('#button').click(function() {
$('div:animated').toggleClass('b');
});