jquery+css实现打字动画效果代码
代码语言:html
所属分类:动画
代码描述:jquery+css实现打字动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400"); .text-js { opacity: 0; } .cursor { display: block; position: absolute; height: 100%; top: 0; right: -5px; width: 2px; /* Change colour of Cursor Here */ background-color: white; z-index: 1; -webkit-animation: flash 0.5s none infinite alternate; animation: flash 0.5s none infinite alternate; } @-webkit-keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } } @keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } } * { margin: 0; padding: 0; boz-sizing: border-box; font-family: "Open Sans", sans-serif; } body { background: linear-gradient(135deg, #00C4FF, #9D1BB2); height: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0