I'm kinda new to this but I'm trying to get this to work.
<script>
if $('.twentytwenty-handle').css({ 'left': '400px' })
{
$('.hero').css({ 'display': 'none' });
}
</script>
What I actually want to achieve is when <div class=twentytwenty-handle style=left: 400px;> and it is equal or greater than 400px, for .hero to dissapear and let's say give .hero2 a display: block; attribute to make .hero2 appear.
EDIT:
The .twentytwenty-handle is not a div in my .html file, but a div in the jquery.twentytwenty.js file of the ZURB twentytwenty plug-in github. What I essentially want is that when the .twentytwenty-handle is moved all the way ( or almost all the way if possible ) to the right it makes my .hero div change into .hero2. And also I want it to change into .hero3 when moved all the way to the left.