Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

jQuery plugin (animsition) problems

Hi,

I've added the "animsition" plugin to my website but there seems to be a problem. When I click the links it fades out and showing this "loading-circle-thingie" until I press F5 - same thing happens when I click "go-to-previous-page-button" :-/

Any Ideas how to fix this?

<!DOCTYPE html>

<html>

<head>
    <title>Home | Henrik Abel Christensen</title>
    <meta charset="utf-8">
    <link href='https://fonts.googleapis.com/css?family=Inconsolata|Bangers|Orbitron' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="js/animsition/animsition.min.css">
    <link rel="stylesheet" href="css/style.css">
    <script   src="https://code.jquery.com/jquery-3.1.0.min.js"   integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s="   crossorigin="anonymous"></script>
    <script src="js/animsition/animsition.min.js"></script>
    <script src="js/script.js"></script>
</head>


<body>
    <div id="container" class="animsition">

        <div id="main-nav">
            <ul id="nav">
                <li><a href="home.html">Forside</a></li>
                <li><a href="price.html">Pris</a></li>
                <li><a href="contact.html">Kontakt</a></li>
            </ul>
        </div>

        <div id="headline">
            <h1>Velkommen!</h1>
        </div>

        <div id="main">

        </div>

    </div>      

</body>

</html>
$(document).ready(function() {
    $(".animsition").animsition({
        linkElement: "a",
        inDuration: 1200,
        outDuration: 600
    });
});

UPDATE***

I've added the class="animsition-link" to the links again + I've removed the linkElement from the script and added inClass and outClass - but it's still not working :-/