Mr.Captain东:跳动的心(CSS3)

CSS3新特性

利用CSS3新特性制作,具有跳动效果的心

使用软件:

1、 HBulider
2、 火狐浏览器

使用知识点

CSS3新特性:

1.border-radius 属性是一个最多可指定四个 border -*- radius 属性的复合属性,简单来说就是倒圆角函数。

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

2.Transform属性应用于元素的2D或3D转换。这个属性允许你将元
素旋转,缩放,移动,倾斜等。
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

3.通过 @keyframes 规则,您能够创建动画。创建动画的原理是,
将一套 CSS 样式逐渐变化为另一套样式。在动画过程中,您能够多
次改变这套 CSS 样式。以百分比来规定改变发生的时间,或者通过
关键词 “from” 和 “to”,等价于 0% 和 100%.0% 是动画的开始时
间,100% 动画的结束时间。为了获得最佳的浏览器支持,您应该
始终定义 0% 和 100% 选择器。

在这里插入图片描述
在这里插入图片描述

4.box-shadow 属性向框添加一个或多个阴影。
在这里插入图片描述

在这里插入图片描述

总结

三个颜色相同的正方形,两个倒圆角,一个旋转45度,调整好位置,堆叠成一个心形。CSS3新特性@keyframes属性,再加一点阴影,即可。

在这里插入图片描述
源码链接:https://pan.baidu.com/s/1wTTTGhitSK4R3nNYryLGQQ
提取码:5908

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据以下要求编写一个python程序1. Description Ship of Fools is a simple classic dice game. It is played with five standard 6-faced dice by two or more players. - The goal of the game is to gather a 6, a 5 and a 4 (ship, captain and crew) in the mentioned order. - The sum of the two remaining dice (cargo) is preferred as high as possible. The player with the highest cargo score wins the round. Example: - In the first round turn, if a player rolls 6 4 3 3 1 (note we five dice at the beginning), the player can bank the 6 (ship), but the rest needs to be re-rolled since there is no 5. - In the second round turn, if the player rolls 6 5 4 4 (four dice, since the 6 from last turn is banked), the player can bank the 5 (captain) and the 4 (crew). The player has three choices for the remaining 6 and 4. The player can bank both and score 10 points, or re-roll one or two of the dice and hope for a higher score. - In the second round turn, if the player instead rolled 4 4 3 1, all dice needs to be re-rolled since there is no 5.程序需要包含一下几个类.The division of responsibility between the different classes is as follows. - Die: Responsible for handling randomly generated integer values between 1 and 6. - DiceCup: Handles five objects (dice) of class Die. Has the ability to bank and release dice individually. Can also roll dice that are not banked. - ShipOfFoolsGame: Responsible for the game logic and has the ability to play a round of the game resulting in a score. Also has a property that tells what accumulated score results in a winning state, for example 21. - Player: Responsible for the score of the individual player. Has the ability, given a game logic, play a round of a game. The gained score is accumulated in the attribute score. - PlayRoom: Responsible for handling a number of players and a game. Every round the room lets each player play, and afterwards check if any player has reached the winning score.
最新发布
06-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值