简体   繁体   中英

Slide animation using jqwicket

I have some basic knowledge using jqwicket. It's prety straightforward but I have problem implementing this slide animation: http://jsfiddle.net/steweb/rWbFw/

Animation is the simple part, but I don't know how to include custom function for resizing:

var utils = {
maskWidth : $('#mask').width(),
currIndex : 0,
setWidths : function(){
    //setting maskWidth
    utils.maskWidth = $('#mask').width();

    //setting wrapper width 
    $('#wrapper').css('width',$('.full').length * utils.maskWidth);

    //setting 'full div' width
    $('.full').each(function(index){
        $(this).css('width',utils.maskWidth);
    });

    //setting curr wrapper margin (for window resize)
    $('#wrapper').css('margin-left',-(utils.currIndex*utils.maskWidth));

}

Any help would be appreciated.

Thank you.

You need to add your JavaScript to the <head> tag. Create a Behavior and override its renderHead(Component, IHeaderResponse) .

IHeaderResponse has several handy methods for appending to head

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM