当前位置: 首页 > news >正文

怎么样在百度做网站网站优化描述设置

怎么样在百度做网站,网站优化描述设置,百度网站建设多钱,网站开发怎么入驻京东目录 主要动画元素 例子#xff1a; 非线性动画 分组动画 Qt 动画是一种在 Qt 框架下创建交互式和引人入胜的图形用户界面的方法#xff0c;我们可以认为是对某个基础元素的多个设置 主要动画元素 PropertyAnimation-属性值变化时的动画 NumberA…  目录 主要动画元素 例子 非线性动画 分组动画 Qt 动画是一种在 Qt 框架下创建交互式和引人入胜的图形用户界面的方法我们可以认为是对某个基础元素的多个设置                         主要动画元素 PropertyAnimation-属性值变化时的动画 NumberAnimation-qreal类型值变化时的动画 ColorAnimation-颜色值变化时的动画 RotationAnimation-旋转值变化时的动画 特殊点的 PauseAnimation-为动画提供暂停 SequentialAnimation-允许按顺序运行动画 ParallelAnimation-允许并行运行动画 AnchorAnimation-锚定值变化时的动画 ParentAnimation-为父元素对象中值发生变化时的动画 SmoothDaniation-允许属性平滑跟踪值 SpringAnimation-允许特性跟踪类似弹簧的运动中的值 PathAnimation-一个项沿路径变化的动画 Vector3dAnimation -为QVector3d值发生变化时的动画 Qt Quick提供了动作元素类型可以在任何可以使用其他动画元素的地方 PropertyAction动画期间立即更改指定的属性 ScriptAction-定义要在动画期间运行的脚本 例子 PropertyAnimation属性动画提供了一种对属性值的更改进行动画处理的方法。Image {id:rootwidth: 400;height: 400//背景source: illustration_2.png//运行状态property bool runing: falseImage{id:logosource: logo.pngx:(root.width-logo.width)/2y:(root.height-logo.height)/2//沿X轴移动PropertyAnimation on x{//沿X轴移动到root.width-logo.widthto:root.width-logo.width//时间2sduration:2000running: root.runing}// 旋转PropertyAnimation on rotation{to:360 //旋转角度duration:2000running: root.runing}//透明度PropertyAnimation on opacity{to:0.1duration:2000running: root.runing}//响应消息改变运行状态MouseArea{anchors.fill: parentonClicked: root.runing true}} } 非线性动画 我们现在定义的所有动画都使用线性插值因为动画的初始缓和类型是Easing.Linear。最好通过一个小的绘图进行可视化下其中y轴是要设置动画的属性x轴是时间持续时间。线性插值将从动画开始时的“from”值到动画结束时的“to”值绘制一条直线。因此缓和类型定义了曲线的变化 关于这段你们可以看示例关键字Easing Curves Example官方示例或者下面代码 //EasingType.qml import QtQuick 2.0Item {id:rootwidth: 200;height: 200property alias image: label.textproperty alias source: image.sourceproperty var easingTyep;signal clickedImage{id:imageanchors.fill: parentsource: imageText {id: labeltext: qsTr(text)anchors.horizontalCenter: parent.horizontalCenteranchors.bottom: parent.botton}}MouseArea{anchors.fill: parentonClicked: root.clicked()} }//主函数 import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Layouts 1.2Rectangle {id:rootwidth: childrenRect.widthheight: childrenRect.heightcolor: greengradient: Gradient{GradientStop{position: 0;color:#8bafce }GradientStop{position: 1;color:#8edf80}}ColumnLayout{spacing: 20Grid{spacing: 10columns: 5EasingType{image:InExpo.pngeasingTyep: Easing.LinearonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutBack.pngeasingTyep: Easing.OutExpoonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutBounce.pngeasingTyep: Easing.InOutBounceonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutCirc.pngeasingTyep: Easing.InOutCirconClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutCubic.pngeasingTyep: Easing.InOutCubiconClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutElastic.pngeasingTyep: Easing.InOutElasticonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutExpo.pngeasingTyep: Easing.InOutExpoonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:Linear.pngeasingTyep: Easing.LinearonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:OutExpo.pngeasingTyep: Easing.OutExpoonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:SineCurve.pngeasingTyep: Easing.SineCurveonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}}Rectangle{id:boxproperty bool togglewidth: 100height:100x:toggle?20:root.width - width - 20gradient:Gradient{GradientStop{position: 0;color: #eaea81}GradientStop{position: 1;color: #f4cccc}}Behavior on x{NumberAnimation{id:animationduration: 1000}}}} }用别的图展示一下吧 分组动画 顾名思义可以对动画进行分组。分组可以通过两种方式完成并行或顺序。可以使用 or 元素该元素充当其他动画元素的动画容器。这些分组动画本身就是动画可以完全按照动画使用。SequentialAnimation与ParallelAnimation import QtQuick 2.0Rectangle {id:rootImage{id:didix:30;y:300source:InOutCirc.pngfocus:falsesignal clickedMouseArea{anchors.fill: parentonClicked:{anim.restart()}}}//ParallelAnimationSequentialAnimation{id:animNumberAnimation {target: didiproperty: yto: 200duration: root.duration}NumberAnimation {target: didiproperty: xto: 150duration: root.duration}}}动画嵌套 分组动画也可以嵌套。例如一个连续动画可以有两个并行动画作为子动画依此类推。我们可以通过足球的例子来形象化这一点。这个想法是从左到右扔一个球并为其行为添加动画效果 主函数主要是将图层分成二块 import QtQuick 2.12 import QtQuick.Window 2.12Window {id:rootwidth: 640height: 480visible: truetitle: qsTr(Hello World)Rectangle {id: skywidth: root.widthheight: 300gradient: Gradient {GradientStop { position: 0.0; color: #0080FF }GradientStop { position: 1.0; color: #66CCFF }}}Rectangle {id: groundanchors.top: sky.bottomanchors.bottom: root.bottomwidth: parent.width;height: root.heightgradient: Gradient {GradientStop { position: 0.0; color: #00FF00 }GradientStop { position: 1.0; color: #00803F }}}BrightSquare{} }为了理解动画我们需要将其剖析为对象的积分变换。我们需要记住动画会为属性更改设置动画。以下是不同的转换 从左到右的 x 平移 X1) 从下到上 的 y 平移然后是从上到下的平移有一些弹跳Y1Y2 在整个动画持续时间内旋转 360 度 ROT1) import QtQuick 2.0Rectangle {id:rootImage{id:didix:10;y:450source:InOutCirc.pngfocus:falsesignal clickedMouseArea{anchors.fill: parentonClicked:{didi.y 480 - didi.heightdidi.rotation 0anim.restart()}}}//ParallelAnimation//SequentialAnimationParallelAnimation{id:animSequentialAnimation{NumberAnimation {target: didiproperty: yto: 100duration: root.durationeasing.type:Easing.OutCirc}NumberAnimation {target: didiproperty: yto: 400duration: root.durationeasing.type:Easing.OutCirc}}NumberAnimation {target: didiproperty: xto: 300duration: root.duration}RotationAnimation{target: didiproperty: rotationto:360duration: root.duration}}}
http://www.w-s-a.com/news/21300/

相关文章:

  • 建设网站 系统占用空间在线代理浏览网站
  • 做海报有什么参考的网站网站建设验收合同
  • 酒店网站制作wordpress文章评论设置
  • 造一个官方网站wordpress mysql类
  • 怎么做卡商网站河南做网站找谁
  • 网站建设招标方案模板上线啦 图谱智能网站
  • 龙口网站建设公司哪家好wordpress 上传类型
  • 做外贸主要看什么网站服务平台的宗旨
  • 宜昌营销型网站购买网站
  • 如何查询网站建设时间wordpress 框架解析
  • 网站建设年终总结网站建设公司顺义
  • 网页给别人做的 网站后续收费吗获取更多付费流量
  • 金融交易网站建设金融 网站建设
  • 长沙网站建设联系电话怎么做表格
  • 网站怎么做域名实名认证龙华网站 建设信科网络
  • 企业网站规划方案网站是做排行榜
  • 万维网网站个人申请网站
  • 我想做网站怎么做昆山网站建设 全是乱码
  • 单位做网站怎么做圣诞树html网页代码
  • 网页开发与网站开发企业网站托管服务常用指南
  • 一站式服务图片临沂做进销存网站
  • 鸣蝉智能建站标准物质网站建设模板
  • 电商网站建设技术员的工作职责商业网站制作价格
  • 网站html模板免费下载公司的网站建设费用入什么科目
  • 高中生做网站网页网页制作教程零基础学会
  • 做金融网站有哪些要求WordPress站内搜索代码
  • 济南网站怎么做seowordpress注册发邮件
  • 珠海网站设计平台东莞市手机网站建设平台
  • 网站开发文档合同怎么在wordpress导航条下方加入文字广告链接
  • 网站建设需怎么做有网站怎么做企业邮箱