小编Vel*_*vic的帖子

HTML Viber链接到特定号码

我需要帮助才能在我的应用程序中实现Viber编号.它应该直接连接用户和Viber聊天选项,它应该添加需要发送消息的特定号码.是否可以通过HTML执行此操作?可能是其他什么方式?

html chat hyperlink viber

7
推荐指数
2
解决办法
1万
查看次数

悬停时图像滚动

我想在 div 中制作一个图像以在悬停时向下滚动。这部分正在发挥作用。

另外,如果图像更长,我需要让它滚动更长的时间,因此我试图在过渡内使用 calc,但它不起作用。

这是我的代码:

.preview {
  position: relative;
  width: 75%;
  height: 90vh;
  overflow: hidden;
  border: 1px solid red;
  background-color: transparent;
}

.previewimg {
  width: 100%;
  height: 100%;
  top: 0;
  background-image: url(https://www.n2odesigns.com/wp-
 content/uploads/Projema-Website-Preview-2016.jpg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position-y: 0;
  transition: all calc(0.02s * height) ease-in-out;
}

.previewimg:hover {
  background-position-y: 100%;
  height: 100%;
  transition: all calc(0.02s * height) ease-in-out;
}
Run Code Online (Sandbox Code Playgroud)
<div class="preview">
  <div class="previewimg"></div>
</div>
Run Code Online (Sandbox Code Playgroud)

如果有其他更好的方法可以做到这一点,我也可以使用它。

css transition hover css-transitions css-animations

2
推荐指数
1
解决办法
6604
查看次数