Chodzi o to, że mam 3 divy i każdy div ma jedną akcję wyznaczoną przez kod jquery. Problem polega na tym, że wszystkie akcje działają na siebie nawzajem tj. element 1 przyjmuje swój rozkaz oraz przeznaczony dla 2 i 3, analogicznie dla 2 rozkazy 1 i 3 i swój. Jak to wyłączyć ? Rozumiem, że kod wykonuje się z góry do dołu, ale przypisanie chyba też obowiązuje.
$(document).ready(function(){
$(".web_designer").each(function(){
$(".web_designer").fadeIn(1000);
});
});
$(document).ready(function(){
$(".passion").each(function(){
$(".passion").show(1000);
});
});
$(document).ready(function(){
$(".window_learn").each(function(){
$(".window_learn").slideDown(500);
});
});
.window_learn{
display: none;
width:38%;
height:5vh;
float:left;
margin-left: 30%;
margin-top:36vh;
animation-name: w_dol;
animation-duration:1s;
}
.html5,.jquery,.css3,.php5,.sql{
font-size:5vh;
float:left;
padding-left: 3.4vh;
font-family: 'Abel';
font-style: normal;
font-weight: 400;
}
.web_designer{
width:50%;
height: :10vh;
display: none;
float:left;
margin-top: 3vh;
margin-left: 25%;
text-align: center;
line-height: 4vh;
font-size: 11vh;
font-family: 'Archivo Black';
font-style: normal;
font-weight: 400;
color:dodgerblue;
}
.passion{
width:21%;
display: none;
height: 4vh;
clear: both;
float:left;
margin-top: 3vh;
margin-left: 109vh;
text-align: center;
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-size:3vh;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="index.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
</head>
<body>
<div class="header">
<div class="face"> <img src="face.png" style="widht:5vh; height:5vh; "></div>
<div class="twitter"> <img src="twitter.png" style="widht:5vh; height:5vh; "></div>
<div class="mail"> <img src="mail.png" style="widht:5vh; height:5vh; "></div>
<div class="dane"> <div class="name">DARIUSZ </div><div class="surname"> HOZER</div></div>
</div>
<div class="main">
<div class="window_learn">
<div class="html5">HTML5</div>
<div class="jquery">JQUERY</div>
<div class="css3">CSS3</div>
<div class="php5">PHP5</div>
<div class="sql">MySQL</div>
</div>
<div class="web_designer">WEB DESIGNER</div>
<div class="passion">PASJA TWORZENIA STRON</div>
</div>
</body>
</html>