.transform~h1{
margin-left: -900px;
transition: 5s;
}
.transform:hover~h1{
margin-left: 20px;
}
$(document).ready(function() {
$('.col').on('click', function() {
$('.col').removeClass('change-color');
$(this).addClass('change-color');
});
});
<a href="#openModal"> -> <a href="#<?=$arItem["PREVIEW_PICTURE"]["ALT"]?>">
<div id="openModal" class="modalDialog"> -> <div id="<?=$arItem["PREVIEW_PICTURE"]["ALT"]?>" class="modalDialog">
<img class="img-responsive" src="img.jpg" alt="img">
width: 0;
height: 0;
border-style: solid;
border-width: 26px 0 26px 12px;
border-color: transparent transparent transparent #c2c2c2;
var s_win_w = $(window).width();
$(window).resize(function(){
win_w = $(window).width();
if (win_w >= s_win_w*1.3 || win_w <= s_win_w*0.7) {
location.reload();
}
});