html - 从左侧 css 扩展宽度

标签 html css

我创建了一个动画,我在像这样的关键帧中的元素之前展开,

.expertise_item:hover::before{
    opacity:1;
    -webkit-animation:widthanimationexperties 3s cubic-bezier(0, 0, 0.72, 0.79);
    -webkit-animation-iteration-count: 1;
}
@-webkit-keyframes widthanimationexperties {
    0% { max-width:0;}
    50% { max-width:150px; }
    100% { max-width:300px;}
}

我有偶数的情况,我已经翻转了偶数。

.expertise_item:nth-child(even)::before{
    bottom: -33px;
    left: -134px;
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

问。我如何从左侧而不是右侧扩展 div 甚至 elevemnt。

最佳答案

你可以在css put中扩展html元素

margin-left: -134px;

关于html - 从左侧 css 扩展宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45854267/

相关文章:

html - 如何在网页中居中 KineticJS 阶段

android - 如何将列表项内的跨度居中

javascript - 在输入中输入数据,然后只显示在页面其他地方输入的文本

css - 如何在同一行显示3个框?

css - 如何为禁用的输入启用事件?

css - Safari 与 Chrome/Firefox : border-image vs border-color

javascript - 添加外部 jQuery 链接后 HTML 上的图像消失

html - 导航菜单项间距需要解决

jquery - HTML5 Canvas 绘图拖放

html - 禁用 iframe 自动调整大小