简体   繁体   中英

Animation with opening of new window

I want to know whether there is any way to animate the opening of new window after clicking a link. I mean when user clicks on a link, when the respective link opens, it does so under some animation rather than just appearing suddenly.

Add this to the <head> of your target page (the page pointed to by the link):

<script type="text/javascript">
    $(document).ready(function() {
        $('body').hide().fadeIn('slow');
    });
</script>

There is an API that you could follow and animate your windows

Link for ref: JQuery Aminate API

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