- jQuery(document).ready(function(){
- /* ---------------------------------------------------------------------- */
- /* Menu
- /* ---------------------------------------------------------------------- */
- // Needed variables
- var $content = $("#content");
- // Run easytabs
- $content.easytabs({
- animate : true,
- updateHash : false,
- transitionIn :'slideDown',
- transitionOut :'slideUp',
- animationSpeed :600,
- tabs :".tmenu",
- tabActiveClass :'active',
- });
- // Hover menu effect
- $content.find('.tabs li a').hover(
- function() {
- $(this).stop().animate({ marginTop: "-7px" }, 200);
- },function(){
- $(this).stop().animate({ marginTop: "0px" }, 300);
- }
- );
- // Menu Navigation
- $(".menu .tabs").carouFredSel({
- responsive : true,
- direction : "left",
- circular: false,
- infinite: false,
- pagination : "#menu-controls",
- auto : false,
- scroll : {
- items : 1,
- duration : 300,
- wipe : true
- },
- prev : {
- button : "#menu-prev",
- key : "right"
- },
- next : {
- button : "#menu-next",
- key : "left"
- },
- swipe: {
- onTouch: true
- },
- items: {
- width: 140,
- visible: {
- min: 2,
- max: 5
- }
- }
- });
- /* ---------------------------------------------------------------------- */
- /* Cats Filter
- /* ---------------------------------------------------------------------- */
- var $catsfilter = $('.cats-filter');
- // Copy categories to item classes
- $catsfilter.find('a').click(function() {
- var currentOption = $(this).attr('data-filter');
- $(this).parent().parent().find('a').removeClass('current');
- $(this).addClass('current');
- });
- /* ---------------------------------------------------------------------- */
- /* Portfolio
- /* ---------------------------------------------------------------------- */
- // Needed variables
- var $plist = $('#portfolio-list');
- var $pfilter = $('#portfolio-filter');
- // Run Isotope
- $plist.isotope({
- filter : '*',
- layoutMode : 'masonry',
- animationOptions : {
- duration : 750,
- easing : 'linear'
- }
- });
- // Isotope Filter
- $pfilter.find('a').click(function(){
- var selector = $(this).attr('data-filter');
- $plist.isotope({
- filter : selector,
- animationOptions : {
- duration : 750,
- easing : 'linear',
- queue : false,
- }
- });
- return false;
- });
- });
Raw Paste