CSS

语言:

CSSSCSS

确定

@import url(https://fonts.googleapis.com/css?family=Sacramento);

/* OFF-TOPIC */

body {

background-color: #3f51b5;

}

div.mario {

display: table;

position: relative;

margin: 200px auto 0 auto;

}

div.mario span.coin {

position: absolute;

width: 100%;

text-align: center;

margin-top: 0px;

opacity: 0;

}

div.mario div.box {

position: relative;

width: 150px;

height: 150px;

z-index: 1;

transition: margin-top 0.2s;

cursor: pointer;

background-image: url('http://adobewordpress.com/tasarim/images/box.png');

background-position: 0 0;

}

div.mario div.box.empty {

background-image: url('http://adobewordpress.com/tasarim/images/box.png');

background-position: 150px 0;

margin-top: 0;

cursor: not-allowed;

}

div.mario span.coin img {

transition: opacity 0.3s ease-out;

}

div.mario span.coin.play {

transition: all 0.5s ease-out;

-webkit-animation-name: position;

-webkit-animation-duration: 800ms;

-webkit-animation-timing-function: linear;

-moz-animation-name: position;

-moz-animation-duration: 800ms;

-moz-animation-timing-function: linear;

-ms-animation-name: position;

-ms-animation-duration: 800ms;

-ms-animation-timing-function: linear;

animation-name: position;

animation-duration: 800ms;

animation-timing-function: linear;

}

div.mario span.coin.play img {

-webkit-animation-name: spin;

-webkit-animation-duration: 400ms;

-webkit-animation-iteration-count: infinite;

-webkit-animation-timing-function: linear;

-moz-animation-name: spin;

-moz-animation-duration: 400ms;

-moz-animation-iteration-count: infinite;

-moz-animation-timing-function: linear;

-ms-animation-name: spin;

-ms-animation-duration: 400ms;

-ms-animation-iteration-count: infinite;

-ms-animation-timing-function: linear;

animation-name: spin;

animation-duration: 400ms;

animation-iteration-count: infinite;

animation-timing-function: linear;

}

@-moz-keyframes spin {

10% {

width: 90px;

height: 120px;

}

45% {

width: 3px;

height: 120px;

}

90% {

width: 90px;

height: 120px;

}

}

@-webkit-keyframes spin {

10% {

width: 90px;

height: 120px;

}

45% {

width: 3px;

height: 120px;

}

90% {

width: 90px;

height: 120px;

}

}

@keyframes spin {

10% {

width: 90px;

height: 120px;

}

45% {

width: 3px;

height: 120px;

}

90% {

width: 90px;

height: 120px;

}

}

@-moz-keyframes position {

10% {

margin-top: -100px;

opacity: 0;

}

25% {

margin-top: -130px;

opacity: 1;

}

85% {

margin-top: -180px;

}

90% {

margin-top: -200px;

opacity: 0;

}

}

@-webkit-keyframes position {

10% {

margin-top: -100px;

opacity: 0;

}

25% {

margin-top: -130px;

opacity: 1;

}

85% {

margin-top: -180px;

}

90% {

margin-top: -200px;

opacity: 0;

}

}

@keyframes position {

10% {

margin-top: -100px;

opacity: 0;

}

25% {

margin-top: -130px;

opacity: 1;

}

85% {

margin-top: -180px;

}

90% {

margin-top: -200px;

opacity: 0;

}

}

a.link {

position: fixed;

bottom: 50px;

font: 300 26px 'Sacramento', sans-serif;

color: white;

cursor: pointer;

text-decoration: none;

}

css金币动画_HTML5 超级马里奥游戏里面的金币动画(带音效)相关推荐

  1. 如何用人工智能秒杀超级马里奥游戏

    本文转自CSDN资讯(微信ID:CSDNnews) 近日,Einfach nerdig 在 Youtube 上发起了一个直播:通过人工智能学习系统来播放"超级马里奥".目前这个直播 ...

  2. 计算机毕设之基于Java的超级马里奥游戏设计与实现

    代码+论文下载链接: http://106.55.47.97/host-pictures/java.png 概述 随着时代的不断变化和发展,计算机互联网产业已经通过各种手段逐渐融入到人们的生活中.来自 ...

  3. 别的AI还在打游戏,这个AI已经当上“超级马里奥”游戏策划了|GECCO最佳论文

    AI打游戏已经不是什么新鲜事了,"沉迷"Dota 2.星际争霸.LOL的AI一个接一个的出现. 但是你也许不知道,相比这些"游戏玩家"AI,还有一位优秀的AI, ...

  4. 超级马里奥游戏像素素材_《超级马里奥3D世界+库巴之怒》游戏文件尺寸相当小...

    现在的玩家越来越关心游戏容量问题,动辄100+GB的文件尺寸常常会让储存空间不堪重负,所以玩家在选游戏之前经常会看看这款游戏占多大空间,再算一算自己的机器里能装多少.在<超级马里奥3D世界+库巴 ...

  5. 8款惊艳的HTML5粒子动画特效,超级惊艳 8款HTML5动画特效推荐源码

    1.HTML5 Canvas发光Loading动画 之前我们分享过很多基于CSS3的Loading动画效果,相信大家都很喜欢.今天我们要来分享一款基于HTML5 Canvas的发光Loading加载动 ...

  6. 基于java实现的超级马里奥游戏

    源码下载 http://www.byamd.xyz/hui-zong-1/ 项目简介 刚进入的时候会有一个界面,为地图编辑器.可以使用此编辑器进行地图编辑,地图编辑器的内容包括:关卡.向左箭头,带有金 ...

  7. 超级马里奥游戏开发一(游戏基本界面)

    实现功能:开始界面,点击开始游戏进入游戏界面 (1)常量类StaticValue 第一步我们的游戏肯定有很多的常量素材,比如一些背景图片,音乐,马里奥的形象,建筑,敌人等等.为了便于我们的使用,我们可 ...

  8. python简单超级马里奥游戏下载_python 实现超级玛丽游戏

    开发需求 python 3.7+ pygame 1.9+ 演示 项目地址 https://github.com/Mr-han11/PythonSuperMario-master 主要功能的代码实现 玩 ...

  9. python简单超级马里奥游戏下载大全_Python实现超级玛丽游戏系列教程01玛丽登场...

    配套视频教程 www.bilibili.com/video/BV1ua411c7m3 项目代码 gitee.com/kamiba/python_super_mario_game_code 最终效果 搭 ...

最新文章

  1. ps怎么制作流体_ps相框制作教程:ps怎么制作相框效果
  2. Django博客系统(发表评论)
  3. 为什么百度首页的HTML源代码最后一行要多一行?浪费空间呀!
  4. 中石油2018年秋季C语言 试卷答案,[石油华东]《数据采集系统》2018年秋季学期在线作业...
  5. 【译】Writing a Simple Linux Kernel Module
  6. 3D坦克大战游戏源码
  7. .NET Core 使用MailKit发送电子邮件
  8. 508. 出现次数最多的子树元素和
  9. bzoj2435: [Noi2011]道路修建 树上dp
  10. caffe安装 cuda安装 opencv安装 cudnn安装 python相关依赖库安装
  11. 安卓TableLayout表格布局
  12. 牛客网 [编程题]餐馆
  13. swift-switch使用方法
  14. Coursera ML 逻辑回归与正则化
  15. 末转变者登录服务器一直在排队,魔兽世界:国服神级服务器,排队持续两年,哈霍兰有何特别之处?...
  16. 录游戏用什么软件,录制游戏视频哪个软件好
  17. 2020湖南省技能竞赛获奖名单_2020技能竞赛丨湖南省职业院校技能竞赛我校赛点圆满闭幕...
  18. cleander日期转换
  19. HTML5视频自动循环播放
  20. ⭐李宏毅2020作业2---logistic regression

热门文章

  1. 在Mac电脑和Android设备之间浏览或传递文件(例如Mac备份Android的文件或图片)
  2. 2020年中级数据库系统工程师考试笔记13—数据库发展和新技术
  3. ocr手机号识别应用
  4. [Reach教程翻译] | 2.3 石头剪刀布
  5. php判断微信浏览器跳转页面跳转,判断当前网页是否在微信浏览器中打开
  6. Oracle数据保护DataGuard安装和配置一
  7. 一个可以免费去除图片背景的网站
  8. Python爬虫爬取彼岸图库壁纸(requests+re+os 模块的简单运用)
  9. 【波形库】对比和分析波形的在线平台
  10. (一百九十六)Android Q 学习WiFi的评分机制(三)