plyr自定义视频播放器皮肤主题效果代码
代码语言:html
所属分类:多媒体
代码描述:plyr自定义视频播放器皮肤主题效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @charset "UTF-8"; @-webkit-keyframes plyr-progress { to { background-position: 25px 0; } } @keyframes plyr-progress { to { background-position: 25px 0; } } .plyr { position: relative; max-width: 100%; min-width: 200px; font-family: Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; direction: ltr; } .plyr, .plyr *, .plyr *::after, .plyr *::before { box-sizing: border-box; } .plyr a, .plyr button, .plyr input, .plyr label { touch-action: manipulation; } .plyr:focus { outline: 0; } .plyr video, .plyr audio { width: 100%; height: auto; vertical-align: middle; border-radius: inherit; } .plyr input[type=range] { display: block; height: 20px; width: 100%; margin: 0; padding: 0; vertical-align: middle; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; border: none; background: transparent; } .plyr input[type=range]::-webkit-slider-runnable-track { height: 8px; background: transparent; border: 0; border-radius: 4px; -webkit-user-select: none; user-select: none; } .plyr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -4px; position: relative; height: 16px; width: 16px; background: #fff; border: 2px solid transparent; border-radius: 100%; -webkit-transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease; transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.15); box-sizing: border-box; } .plyr input[type=range]::-moz-range-track { height: 8px; background: transparent; border: 0; border-radius: 4px; -moz-user-select: none; user-select: none; } .plyr input[type=range]::-moz-range-thumb { position: relative; height: 16px; width: 16px; background: #fff; border: 2px solid transparent; border-radius: 100%; -moz-transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease; transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.15); box-sizing: border-box; } .plyr input[type=range]::-ms-track { height: 8px; background: transparent; border: 0; color: transparent; } .plyr input[type=range]::-ms-fill-upper { height: 8px; background: transparent; border: 0; border-radius: 4px; -ms-user-select: none; user-select: none; } .plyr input[type=range]::-ms-fill-lower { height: 8px; background: transparent; border: 0; border-radius: 4px; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0