RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题

全部问题

Martin Hope
Demon __
Asked: 2020-05-18 22:00:17 +0000 UTC

如何创建animejs网站按钮的悬停效果

  • 11

偶然发现了animejs网站

我真的很喜欢hover他们到处找的主按钮的效果,但我没有找到类似的效果,即使他们的网站上没有类似的效果

.btn {
    width:100px;
    height:40px;
    
    text-align:center;
    padding:5px;
    line-height:2.3;
    border:1px solid red;
}
<div class="btn">button</div>

之前效果 在此处输入图像描述 之后 在此处输入图像描述

javascript
  • 3 个回答
  • 10 Views
Martin Hope
JMNext
Asked: 2020-04-27 20:48:16 +0000 UTC

生成随机小数

  • 11

有这样一个任务:生成一个数字数组,其总和为 1。数字的个数是从键盘输入的。解决方案可以是获得总量 1 的任何主要事物(不希望有大量的零)

c#
  • 5 个回答
  • 10 Views
Martin Hope
A K
Asked: 2020-04-06 20:05:52 +0000 UTC

Telegram 加密密钥是如何排列的?

  • 11

关于电报协议设备和加密密钥的问题。

特殊服务向电报索要钥匙,并坚称这一要求不违反俄罗斯联邦宪法:我们不向用户索要消息,我们只索要钥匙。

那么抱歉,这些无用的键一般是什么?他们不能破译任何东西吗?总的来说,这些密钥是如何排列的:为每个电报用户存储一个密钥,而 FSB 在恐怖主义刑事案件中需要六个密钥?还是他们想要某种可以解密所有一亿电报用户的任何消息的金钥匙?

相关链接:

  • 廷科夫杂志。Telegram 无法在法庭上质疑 FSB 的命令。这是什么意思
telegram
  • 2 个回答
  • 10 Views
Martin Hope
Air
Asked: 2020-03-17 15:58:51 +0000 UTC

如何在 SVG 上实现阴影和 z-index 的动画?

  • 11

SVG如何用阴影和变化的z-index元素来实现类似的例子?

如需完整效果,请展开至全屏并单击以查看动画。

const shadows = document.getElementsByClassName("shadows")[0];
const shadowsChildren = shadows.children;
let count = 0;
let left = false;
shadows.addEventListener("click", function() {
  let interval = setInterval(function() {
    !left ? count++ : count--;
    shadowsChildren[left ? count : count - 1].style.zIndex = left ? count : shadowsChildren.length - count;
    shadowsChildren[left ? count : count - 1].className = !left ? 'span' : '';

    if (count === shadowsChildren.length) {
      left = true;
      clearInterval(interval);
    }

    if (count === 0) {
      left = false;
      clearInterval(interval);
    }
  }, 100);
});
* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #272727;
}

.container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: orange;
}

.shadows {
  cursor: pointer;
  background: orange;
  position: relative;
  text-shadow: -15px 5px 20px #303030;
  width: 80vw;
  color: orange;
  text-align: center;
  letter-spacing: -20px;
  transition: all 0.25s ease-out .2s;
  font-family: fantasy;
  font-size: 200px;
}

span {
  position: relative;
  margin-left: -10px;
  transition: all 0.25s ease-out;
}

span.span {
  text-shadow: 15px 5px 20px #303030;
  transition: all 0.25s ease-out;
}
<div id="wrapper">
  <div class="container">
    <div class="shadows">
      <span>C</span>
      <span>L</span>
      <span>I</span>
      <span>C</span>
      <span>K</span>
      <span>M</span>
      <span>E</span>
    </div>
  </div>
</div>

选项css:hover

* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #272727;
}

.container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: orange;
}

.shadows {
  cursor: pointer;
  background: orange;
  position: relative;
  text-shadow: -15px 5px 20px #303030;
  width: 80vw;
  color: orange;
  text-align: center;
  letter-spacing: -20px;
  transition: all 0.25s ease-out .2s;
  font-family: fantasy;
  font-size: 200px;
}

span {
  position: relative;
  margin-left: -18px;
  transition: all 0.25s ease-out;
}

.shadows:hover span {
  text-shadow: 15px 5px 20px #303030;
}

.shadows:hover span:nth-child(1) {
  z-index: 8;
}

.shadows:hover span:nth-child(2) {
  z-index: 7;
}

.shadows:hover span:nth-child(3) {
  z-index: 6;
}

.shadows:hover span:nth-child(4) {
  z-index: 5;
}

.shadows:hover span:nth-child(5) {
  z-index: 4;
}

.shadows:hover span:nth-child(6) {
  z-index: 3;
}

.shadows:hover span:nth-child(7) {
  z-index: 2;
}

.shadows:hover span:nth-child(8) {
  z-index: 1;
}
<div class="container">
  <div class="shadows">
    <span>C</span>
    <span>L</span>
    <span>I</span>
    <span>C</span>
    <span>K</span>
    <span>M</span>
    <span>E</span>
  </div>
</div>

javascript
  • 3 个回答
  • 10 Views
Martin Hope
Arthur
Asked: 2020-03-11 22:11:51 +0000 UTC

带有 SVG 滤镜的菜单(Goo 效果)

  • 11

有一个在HTML/上实现的菜单CSS。我想出了将它与过滤器一起制作的想法,特别是每个菜单项SVG的“粘度”(Goo )效果。

1.好例子:

在此处输入图像描述

2.使用此效果制作的菜单:

在此处输入图像描述

问题:如何正确应用此菜单的过滤器?

html
  • 1 个回答
  • 10 Views
上一页
下一页

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5