我有一个菜单覆盖,当我单击菜单按钮时,它会从左向右移动。现在,我希望它可以从右到左进行动画处理,该怎么办?
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
background-color: #960303;
overflow-x: hidden;
transition: 0.1s;
}
我有一个菜单覆盖,当我单击菜单按钮时,它会从左向右移动。现在,我希望它可以从右到左进行动画处理,该怎么办?
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
background-color: #960303;
overflow-x: hidden;
transition: 0.1s;
}