translate3d

Owlcarousel 2 - elements not visible while translate3d()

孤街醉人 提交于 2021-01-28 15:24:33
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Owlcarousel 2 - elements not visible while translate3d()

旧街凉风 提交于 2021-01-28 15:13:58
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Owlcarousel 2 - elements not visible while translate3d()

♀尐吖头ヾ 提交于 2021-01-28 15:06:24
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

Owlcarousel 2 - elements not visible while translate3d()

≯℡__Kan透↙ 提交于 2021-01-28 15:05:48
问题 I'm using Owlcarousel 2 for sliding over multiple divs, the problem is that inside each "sliding-page" there are some elements positioned as absolute (relative not working neither), and they are not visible while animating, they just "blick-in" when the animation is finished. This is what my html looks like <div id="owl-example" class="owl-carousel width-height-100"> <div class="advert-bg lazyOwl owl-lazy" data-src="ad_preview_new.png"> <div class="col-sm-6 col-md-7 col-lg-8 col-elg-9 pull

蚂蚁庄园

↘锁芯ラ 提交于 2020-04-02 05:11:26
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>chick</title> <style> html{min-width:320px;overflow-x:hidden} body,html{height:100%;line-height:1;-webkit-user-select:none;//禁止用户复制页面文本 -webkit-touch-callout:none;-webkit-overflow-scrolling:touch;//ios滚动效果 -webkit-font-smoothing:antialiased;//mac下字体 -webkit-tap-highlight-color:rgba(242,137,76,.05);://a标签点击高亮效果} article,aside,blockquote

vue移动端添加路由动画

这一生的挚爱 提交于 2020-03-10 11:59:37
<template> <div id="app" > <transition :name="transitionName" > <router-view class="appView"></router-view> </transition> </div> </template> <script> export default { name: 'App', data () { return { transitionName: '' } }, watch: { '$route' (to, from) { const toRouterLevel = to.meta.routerLevel const fromRouterLevel = from.meta.routerLevel console.log(fromRouterLevel) console.log(toRouterLevel) // console.log(to, from) // const toDepth = to.path.split('/').length // const fromDepth = from.path.split('/').length // console.log(to.path) // console.log(from.path) if (toRouterLevel >

vue项目添加路由动画

雨燕双飞 提交于 2020-03-10 11:29:25
<template> <div id="app" > <transition :name="transitionName" > <router-view class="appView"></router-view> </transition> </div> </template> <script> export default { name: 'App', data () { return { transitionName: '' } }, watch: { '$route' (to, from) { const toRouterLevel = to.meta.routerLevel const fromRouterLevel = from.meta.routerLevel console.log(fromRouterLevel) console.log(toRouterLevel) // console.log(to, from) // const toDepth = to.path.split('/').length // const fromDepth = from.path.split('/').length // console.log(to.path) // console.log(from.path) if (toRouterLevel >

CSS3 animation translate3d not working

时光毁灭记忆、已成空白 提交于 2020-02-12 16:48:16
问题 I have been experimenting with jQuery animate vs CSS3 animate, I alse wanted to test the 2D / 3D translate to see which is better. Does anyone know why my CSS3 translate3d doesn't work? I've tried it on desktop and mobile. Any help appreciated jsFiddle HTML <div id="container1" class="container">transition</div> <div id="container2" class="container">translate</div> <div id="container3" class="container">translate3d</div> <div id="container4" class="container">jQ animate</div> CSS .container

transform3d(): Using Percentage to Move Within Parent Object

耗尽温柔 提交于 2020-01-13 08:52:07
问题 CSS has standard behavior, when moving an object in percentage, that this percentage represents dimensions of its parent container (div). This is not true when using CSS3 transform: translate3d() . If using percentage values for either X, Y, or Z coordinate, the percentage represents dimensions of the current object , not its parent. The problem should be obvious now: if I need to use CSS3 animation and transform: translate3d() to move current object within dimensions of its dynamically re

How to detect CSS translate3d without the webkit context?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 14:47:50
问题 To detect if a browser support translate3d we can use ( WebKitCSSMatrix in window && m11 in new WebKitCSSMatrix()) but now that firefox support translate3d how to have a correct detection of it? The idea would be to find a solution without using Modernizr. 回答1: I needed something similar. I wanted to test if a browser supported translate3d without using a library. I didn't find any good generic test that wasn't webkit specific. So after much experimentation, I came up with the following test.