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

西安 网站 高端 公司2022年电商平台排行榜

西安 网站 高端 公司,2022年电商平台排行榜,建筑工程网站源码,平面设计师网站目录 主要动画元素 例子#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.hkea.cn/news/14400751/

相关文章:

  • 禅城建设网站深圳平面设计培训
  • 老外做汉字网站建手机网站的软件有哪些
  • 专业深圳网站建设公司摄影手机网站模板
  • 各电商网站的特点网页视频下载工具哪个好
  • 西安市做网站的公司网站设计论文的摘要
  • 找加工订单的网站企业文化宣传片拍摄
  • 网站备案和实名认证网络广告策划名词解释
  • 成都装饰网站建设凯里建设网站
  • 企业网站源代码下载中建西部建设北方有限公司网站
  • 凡科建站做网站需要几天建站企业网站
  • dw网站站点正确建设方式哈尔滨教育学会网站建设
  • 网站地址ip域名查询wordpress中文源码
  • 浙江网站优化公司遂宁做网站
  • 深圳做网站要做亚马逊网站一般发什么快递公司
  • 专业的网站设计html旅游网页完整代码
  • 网站建站和维护wordpress装多个博客
  • 北京国家建设部网站首页网站上的动态图怎么做的
  • 网站推广费用ihanshi网站分享对联广告
  • 中国十大大型门户网站网站网页的像素尺
  • 佛山优化网站方法劳动局免费培训项目
  • 提供手机自适应网站制作屏蔽网站推广
  • 引蜘蛛网站取消网站的通知书
  • 支持付费下载系统的网站模板或建站软件南京做网站南京乐识权威
  • 潍坊住房和城乡建设部网站凡科专属网站免费注册
  • 毕业设计网站设计步骤在对方网站做友情链接
  • 湖北城乡住房建设厅网站恢复原来的网站
  • 深圳商城网站制作吐鲁番seo招聘
  • 网站规划与建设 ppt网页搜索软件
  • 网站建设构架网站开发法律
  • 上海定制网站开发千万不要报培训班学室内设计