• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript animations.sequence函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中@angular/animations.sequence函数的典型用法代码示例。如果您正苦于以下问题:TypeScript sequence函数的具体用法?TypeScript sequence怎么用?TypeScript sequence使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了sequence函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: query

 }),
 query(':enter .' + ANIMATE_ON_ROUTE_ENTER, style({ opacity: 0 }), {
   optional: true
 }),
 sequence([
   query(
     ':leave > *',
     [
       style({ transform: 'translateY(0%)', opacity: 1 }),
       animate('0.2s ease-in-out', style({ transform: 'translateY(-3%)', opacity: 0 })),
       style({ position: 'fixed' })
     ],
     { optional: true }
   ),
   query(
     ':enter > *',
     [
       style({
         transform: 'translateY(-3%)',
         opacity: 0,
         position: 'static'
       }),
       animate('0.5s ease-in-out', style({ transform: 'translateY(0%)', opacity: 1 }))
     ],
     { optional: true }
   )
 ]),
 query(
   ':enter .' + ANIMATE_ON_ROUTE_ENTER,
   stagger(100, [
     style({ transform: 'translateY(15%)', opacity: 0 }),
开发者ID:macliems,项目名称:JixyFront,代码行数:31,代码来源:router.transition.ts


示例2: trigger

   *
   * When the menu panel is removed from the DOM, it simply fades out after a brief
   * delay to display the ripple.
   */
  transformMenu: trigger('transformMenu', [
    state('void', style({
      opacity: 0,
      // This starts off from 0.01, instead of 0, because there's an issue in the Angular animations
      // as of 4.2, which causes the animation to be skipped if it starts from 0.
      transform: 'scale(0.01, 0.01)'
    })),
    transition('void => enter', sequence([
      query('.mat-menu-content', style({opacity: 0})),
      animate('100ms linear', style({opacity: 1, transform: 'scale(1, 0.5)'})),
      group([
        query('.mat-menu-content', animate('400ms cubic-bezier(0.55, 0, 0.55, 0.2)',
          style({opacity: 1})
        )),
        animate('300ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({transform: 'scale(1, 1)'})),
      ])
    ])),
    transition('* => void', animate('150ms 50ms linear', style({opacity: 0})))
  ]),


  /**
   * This animation fades in the background color and content of the menu panel
   * after its containing element is scaled in.
   */
  fadeInItems: trigger('fadeInItems', [
    // TODO(crisbeto): this is inside the `transformMenu`
    // now. Remove next time we do breaking changes.
开发者ID:OkBayat,项目名称:material2,代码行数:32,代码来源:menu-animations.ts


示例3: sequence

                    opacity  : 0
                })
            ], {optional: true}),
            sequence([
                group([
                    query('content > :leave', [
                        style({
                            transform: 'translateX(0)',
                            opacity  : 1
                        }),
                        animate('600ms cubic-bezier(0.0, 0.0, 0.2, 1)',
                            style({
                                transform: 'translateX(-100%)',
                                opacity  : 0
                            }))
                    ], {optional: true}),
                    query('content > :enter', [
                        style({transform: 'translateX(100%)'}),
                        animate('600ms cubic-bezier(0.0, 0.0, 0.2, 1)',
                            style({
                                transform: 'translateX(0%)',
                                opacity  : 1
                            }))
                    ], {optional: true})
                ]),
                query('content > :leave', animateChild(), {optional: true}),
                query('content > :enter', animateChild(), {optional: true})
            ])
        ])
    ]),
开发者ID:karthik12ui,项目名称:fuse-angular-full,代码行数:30,代码来源:index.ts


示例4: trigger

import { trigger, transition, query, style, stagger, animate, group, keyframes, animateChild, sequence } from '@angular/animations';

export const routerAnimation =
    trigger('routerAnimations', [
        transition('* <=> *', [
                query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
                sequence([
                    group([query(':leave', [animateChild()], { optional: true } )]),
                    group([  // block executes in parallel
                        query(':enter', group([
                        style({ transform: 'translateX(100%)' }),
                        animate('0.5s ease-in-out', style({ transform: 'translateX(0%)' })) ]), { optional: true }),
                        query(':leave', group([ animateChild(),
                        style({ transform: 'translateX(0%)' }),
                        animate('0.5s ease-in-out', style({ transform: 'translateX(-100%)' }))
                        ]), { optional: true }),
                    ]),
                    group([query(':enter', [animateChild()], { optional: true } )]),
                    ])
        ])
    ]);

export const homeTransition =
trigger('homeTransition', [
    transition(':enter', [
      query('.block', style({ opacity: 0 })),
      query('.block', stagger(300, [
        style({ transform: 'translateY(100px)' }),
        animate('0.8s cubic-bezier(.75,-0.48,.26,1.52)', style({transform: 'translateY(0px)', opacity: 1})),
      ])),
    ]),
开发者ID:aleksK22,项目名称:FitnessPro,代码行数:31,代码来源:router.animation.ts


示例5: trigger

  animate,
  sequence,
  style,
  transition,
  trigger,
} from '@angular/animations';

export const rowAnimation: AnimationTriggerMetadata = trigger('rowAnimation', [
  transition('void => true', [
    style({
      height: '*',
      opacity: '0',
      transform: 'translateX(-550px)',
      'box-shadow': 'none',
    }),
    sequence([
      animate('.35s ease', style({
        height: '*',
        opacity: '.2',
        transform: 'translateX(0)',
        'box-shadow': 'none',
      })),
      animate('.35s ease', style({
        height: '*',
        opacity: 1,
        transform: 'translateX(0)',
      }))
    ])
  ])
]);
开发者ID:m-sc,项目名称:yamcs,代码行数:30,代码来源:animations.ts


示例6: trigger

  animate,
  style,
  group,
  query,
  transition,
  keyframes,
  animateChild } from '@angular/animations';

export const routerTransition = trigger('routerTransition', [
  transition('* => *', [
    query(':enter, :leave', style({ position: 'fixed', width: '100%' }), {optional: true}),
    query(':enter', style({ opacity: 0 }), {optional: true}),
    sequence([
      query(':leave', animateChild(), {optional: true}),
      group([
        query(':leave', [
          style({ opacity: 1 }),
          animate('300ms ease-out',
          style({ opacity: 0 }))
        ], {optional: true}),
        query(':enter', [
          style({ opacity: 0 }),
          animate('300ms 200ms ease-in',
          style({ opacity: 1 }))
        ], {optional: true}),
      ]),
      query(':enter', animateChild(), {optional: true})
    ])
  ])
]);
开发者ID:sebastienbarbier,项目名称:sebastienbarbier.com,代码行数:30,代码来源:router.animations.ts



注:本文中的@angular/animations.sequence函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript animations.stagger函数代码示例发布时间:2022-05-28
下一篇:
TypeScript animations.query函数代码示例发布时间:2022-05-28
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap