jquery - 向同位素元素添加跃迁

标签 jquery html css css-transitions jquery-isotope

我正在尝试向 isotope 中的 div 元素添加过渡效果(v2) list 。例如:

.isotope-item {
width: 340px;
height: 223px;
border: 10px solid black;
background-color: #000;
-webkit-transition: background-color 0.25s linear, border-color 0.25s linear;
transition: background-color 0.25s linear, border-color 0.25s linear;    
}

问题是我添加的跃迁与同位素自动添加的跃迁相冲突。这导致我添加的转换不起作用,并且同位素转换时间:缓和不起作用。

如何添加我的跃迁而不让它们被自动添加的同位素跃迁取代或取代?

最佳答案

手动重新添加:

.isotope-item {
width: 340px;
height: 223px;
border: 10px solid black;
background-color: #000;
-webkit-transition:  -webkit-transform 0.5s, opacity 0.5, background-color 0.25s linear, border-color 0.25s linear;
transition:  transform 0.5s, opacity 0.5, background-color 0.25s linear, border-color 0.25s linear;    
}

关于jquery - 向同位素元素添加跃迁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26579998/

相关文章:

javascript - 如何以 44.44 等文本框数字格式执行验证

javascript - HTML 格式的缩写字段,

html - 带有另一个表的表列

html - 重新排列移动设备的 div 顺序

jquery - 设置 "Position: fixed"div 相对于父 div 的宽度

jquery - Eclipse不了解jQuery

jquery - 如何让文本框中只允许有一个小数点分隔符?

HTML/CSS : How can I float the 'a href' elements to the left without them leaving the div element that they are inside in?

javascript - 使用javascript验证html中的输入文本字段

javascript - 创建可重用的 jQuery 函数