jeudi 23 avril 2015

change attributes of css class when javascript function runs

so I have this function below...

<script>          
$('.tile').on('click', function () {

    $(".tile").addClass("flipOutX");
    setTimeout(function(){
        $(".tile-group.six").load("musability-musictherapy-company-overview.html");
    }, 2000);

});
</script>

I basically want to change the css attributes of tile-group.six to have a different margin. Any ideas how I might go about this ?

Aucun commentaire:

Enregistrer un commentaire