我们如何播放YouTube视频作为对Google Assistant应用的回应?
到目前为止,如果我说要在Google助手应用程序上与Gurudev对话,它会显示一些视频,当我单击它们时,它们会在Google助手上弹出。
我们如何使用对话框流程和实现在我们的应用程序中实现此功能?
我构建了一个CSS 动画,其中一部分是更改div 的边框颜色。
我正在使用from和to值。边框应该闪烁白色和蓝色,但我得到的不是白色而是浅蓝色。
我构建了一个最小的片段来演示这一点。知道我做错了什么吗?
.switch {
width: 100px;
height: 100px;
border: 5px solid white;
-webkit-animation: switch-animation 2s steps(2, start) infinite;
animation: switch-animation 2s steps(2, start) infinite;
}
@keyframes switch-animation {
from {
border-color: white;
}
to {
border-color: blue;
}
}
@-webkit-keyframes switch-animation {
from {
border-color: white;
}
to {
border-color: blue;
}
}Run Code Online (Sandbox Code Playgroud)
<html>
<head></head>
<body>
<div class="switch"></div>
</body>
</html>Run Code Online (Sandbox Code Playgroud)