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 Using jQuery Plugins Introducing jQuery Plugins Exploring Plugin Options

jQuery Plug-ins: Calling animsition in the video

Hi, I have a question regarding the main.js file that Dave showed in the video. In the function to call the animsition plug-in, Dave only included 5 or so properties in his object literal. Are the values that he didn't include--commented out below--are they default values (and thus needn't be declared)? The plug-in seems to run w/or w/o them. Thanks Bill

javascript
$('.animsition').animsition({
  inClass: 'fade-in-left-lg',
  outClass: 'fade-out-left-lg',
  linkElement: 'header a',
  inDuration: 1000,
  outDuration: 500,

<!-- Dave didn't include the following
loading: true,
    loadingParentElement: 'body', //animsition wrapper element
    loadingClass: 'animsition-loading',
    loadingInner: '', // e.g '<img src="loading.svg" />'
    timeout: false,
    timeoutCountdown: 5000,
    onLoadEvent: true,
    browser: [ 'animation-duration', '-webkit-animation-duration'],
    // "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser.
    // The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
    overlay : false,
    overlayClass : 'animsition-overlay-slide',
    overlayParentElement : 'body',
    transition: function(url){ window.location.href = url; }
  });
-->