css实现图片相册旋转滚动鼠标悬浮放大效果代码

代码语言:html

所属分类:画廊相册

代码描述:css实现图片相册旋转滚动鼠标悬浮放大效果代码

代码标签: css 图片 相册 旋转 滚动 鼠标 悬浮 放大

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
  
<style>
/*   CSS-only with use of:
    - offset path/anchor/distance
    - trigonometric function sin(),
    - sibling- count()/index() => only in Chromium (fallback in JS)
    - container-units
    - @property rule
    - :has()/:not() selectors
*/

@property --gallery-rotation {
  syntax: "<number>";
  initial-value: 0;
  inherits: true;
}
@keyframes gallery-rotation { to { --gallery-rotation: 1 } }

#gallery {
  --rotate-direction: 1; /* -1 or 1 */
  --rotate-duration: 20s;
  --item-size: 100%; /* 100% is no distance between items */
  -.........完整代码请登录后点击上方下载按钮下载查看

网友评论0