上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: gsap(二) 鼠标滚动特效第一篇 动画插件 import { ScrollTrigger } from "gsap/ScrollTrigger"; import {gsap, Expo} from 'gsap'; gsap.registerPlugin(ScrollTrigger); 动画开始时, box5进入(第一次进入)视口 g 阅读全文
posted @ 2022-05-04 18:44 猫神甜辣酱 阅读(1942) 评论(0) 推荐(0) 编辑
摘要: gsap(一) 跟着鼠标移动的小球 gsap.quickTo() <div style="width: 500px;height: 400px;background-color: lavender;margin-left:40px;margin-top:30px;" #parent> <div style="width: 30px;h 阅读全文
posted @ 2022-05-04 18:37 猫神甜辣酱 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 新手入门 npm install hover-effect 使用 import hoverEffect from 'hover-effect' new hoverEffect({ parent: document.querySelector('.ticket'), intensity1: 0.1, 阅读全文
posted @ 2022-04-30 14:53 猫神甜辣酱 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 页码页数发生变化发两次请求的bug ng-zorro 分页的bug pageBool=false // 页码请求 pageIndexChange(){ if(!this.pageBool){ this.getList() } } // 页数函数 pageSize(){ this.pageNumber 阅读全文
posted @ 2022-04-26 15:29 猫神甜辣酱 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 粘性滚动拉开窗帘的效果 设置css :root { --minh: 98vh; --color1: wheat; --color2: midnightblue; } 使用背景颜色 linear-gradient(to bottom, var(--color2) 50%, var(--color1) 阅读全文
posted @ 2022-04-17 14:48 猫神甜辣酱 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 发现一串很强的代码 const str = 'a*b-ab'; const arrayElement = [['a', 'class 1'], ['b', 'class 12'],['ab', 'class 15'],['ac', 'class 2']]; const map=new Map(arr 阅读全文
posted @ 2022-04-04 10:08 猫神甜辣酱 阅读(76) 评论(0) 推荐(1) 编辑
摘要: 避免生成css ng g c xxx --style=none 数据结构渲染Form表单 import {Validators} from "@angular/forms"; const dateForm = { sex: {value: null, required: true, maxLengt 阅读全文
posted @ 2022-03-27 23:22 猫神甜辣酱 阅读(155) 评论(0) 推荐(1) 编辑
摘要: 创建一个angular 应用 ng new <workspace-name> --create-application=false --create-application=false 阻止默认生成一个angular项目 其实不一定要用这种方式, 我感觉我们可以直接新建一个库, 然后进行开发后面进行 阅读全文
posted @ 2022-03-26 10:43 猫神甜辣酱 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://williamjuan027.github.io/angular-animations-explorer/home 注入模块 BrowserAnimationsModule 来个小案例 @Component({ ... animations: [ trigger('enabledSt 阅读全文
posted @ 2022-03-13 15:24 猫神甜辣酱 阅读(98) 评论(0) 推荐(0) 编辑
摘要: extend 组件的使用 公共的方法,属性 @Component({ selector: 'app-three', templateUrl: './three.component.html', }) export class ThreeComponent { @Input() two = 'bbb' 阅读全文
posted @ 2022-03-09 13:37 猫神甜辣酱 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页