var body = $("html, body");
body.stop().animate({scrollTop:0}, 500, 'swing', function() {
alert("Finished animating");
});
function validBraces(b){
let reg = /\(\)/g;
b = b.replace(/[^\(\)]/g,'')
return b.match(reg) != null ? validBraces(b.replace(reg,'')) : b === "" ? true : false;
}
console.log(validBraces("(Sensei saysno) (sd) (sdfsf"));
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-50 -50 200 200">
<title>svg arrow with dropshadow</title>
<desc>An svg example of an arrow shape with a dropshadow filter applied. The dropshadow filter effect uses feGaussianBlur, feOffset and feMerge.</desc>
<defs>
<filter id="dropshadow" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="3"/>
<feOffset dx="2" dy="2" result="offsetblur"/>
<feMerge>
<feMergeNode/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</defs>
<polygon points="58.263,0.056 100,41.85 58.263,83.641 30.662,83.641 62.438,51.866 0,51.866 0,31.611 62.213,31.611 30.605,0 58.263,0.056" fill="#EEEEEE" filter="url(#dropshadow)"/>
</svg>
li {
$baseWidth: 100% / 7;
width: $baseWidth;
//немного добавляем или убавляем длинну - чтобы отступы для
//длинных и коротких слов выглядели одинаково
&:nth-child(2) {width: $baseWidth + 3%;}
&:nth-child(5) {width: $baseWidth - 3%;}
}
li {
text-align: center;
&:first-of-type {text-align: left;}
&:last-of-type {text-align: right;}
}
<animate dur='xxx'>
увидишь...