css-transforms

CSS 80's TRON Grid

北城以北 提交于 2020-05-09 05:55:49
问题 I'm wanting to build an "80's TRON Grid" effect with CSS but I'm running into a few issues with getting it where I want it. Stuff like this. My Requirements: Fade 1 side to transparent Package it up into a nice .class to put on any <element> and it just work I've made 2 attempts at this w/ 2 different techniques. 80's Grid #1 (pseudo selectors) https://codepen.io/oneezy/pen/MPQWBE Although this works perfectly, it's not ideal to put 10 <div> 's in my html every time I want the effect. body {

CSS 80's TRON Grid

橙三吉。 提交于 2020-05-09 05:55:09
问题 I'm wanting to build an "80's TRON Grid" effect with CSS but I'm running into a few issues with getting it where I want it. Stuff like this. My Requirements: Fade 1 side to transparent Package it up into a nice .class to put on any <element> and it just work I've made 2 attempts at this w/ 2 different techniques. 80's Grid #1 (pseudo selectors) https://codepen.io/oneezy/pen/MPQWBE Although this works perfectly, it's not ideal to put 10 <div> 's in my html every time I want the effect. body {

css isometric view with non iso-metric children

梦想与她 提交于 2020-03-16 05:41:28
问题 I'm using transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg); to make an element look like it's in an isometric perspective. I'm wondering how I could revert the effect for certain children so that they share the coordination system but are normal aligned. I tried to rotate the children the same way back but it seems to work differently. Any ideas? .iso { transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg); transform-style: preserve-3d; position: relative; height: 20rem; width: 20rem

css isometric view with non iso-metric children

霸气de小男生 提交于 2020-03-16 05:40:18
问题 I'm using transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg); to make an element look like it's in an isometric perspective. I'm wondering how I could revert the effect for certain children so that they share the coordination system but are normal aligned. I tried to rotate the children the same way back but it seems to work differently. Any ideas? .iso { transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg); transform-style: preserve-3d; position: relative; height: 20rem; width: 20rem

css isometric view with non iso-metric children

半世苍凉 提交于 2020-03-16 05:39:41
问题 I'm using transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg); to make an element look like it's in an isometric perspective. I'm wondering how I could revert the effect for certain children so that they share the coordination system but are normal aligned. I tried to rotate the children the same way back but it seems to work differently. Any ideas? .iso { transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg); transform-style: preserve-3d; position: relative; height: 20rem; width: 20rem

Skew Background Image on one side with a border

廉价感情. 提交于 2020-02-23 04:24:24
问题 I am trying to skew a background image on one side that has a border. The layout I am basically trying to create is as follows: Here is a quick JSFiddle I made with the current setup: https://jsfiddle.net/silvawebdesigns/b2ae0k69/11/ #about-gallery { margin: 60px 0; display: -ms-flex; display: -webkit-flex; display: flex; flex-wrap: wrap; margin-bottom: 500px; width: 100%; } .about-img-wrapper { position: relative; width: 100%; display: -ms-flex; display: -webkit-flex; display: flex; flex

Tests for “preserve-3d” are not working on Android (via Browserstack)?

江枫思渺然 提交于 2020-02-05 10:14:44
问题 Android is supposed to support css 3d transforms completely since version 3.0 according to caniuse.com. When I run one of the tests below (e.g. on Android 4.1, Samsng Galaxy), they return true. However, when I view a page that uses 3d transforms and preserve-3d it doesnt’t work. For example: http://jsfiddle.net/bartaz/e3Rjz/show/ Test 1: (function(Modernizr, win){ Modernizr.addTest('csstransformspreserve3d', function () { var prop = Modernizr.prefixed('transformStyle'); var val = 'preserve-3d

Chrome CSS3 3D Transform bug

送分小仙女□ 提交于 2020-02-02 06:48:29
问题 I've got css to do a card flip on a element in 3d space. It works great except for when you scroll up and down the page you randomly get white elements displaying on the page at certain places in Chrome. I've attached an image as an example inside a facebook tab. In chrome windows, the white "boxes" cover up content on occasion. When I comment out the 3d transform css, this doesn't occur. Here is a fiddle (http://jsfiddle.net/derekaug/QSEvs/) of the css that does the 3d stuff. Unfortunately,

How to convert CSS transform matrix back to its component properties

[亡魂溺海] 提交于 2020-02-01 03:20:47
问题 I have obtained a CSS transform matrix of an element by using getComputedStyle() method as follows. var style = window.getComputedStyle(elem1, null); var trans = style.transform; trans = matrix(1, 0, 0, 1, 1320, 290) Is there a way to back calculate the transform matrix to get the original CSS rules ie. the values to translate , rotate, skew properties. I'm assuming it can be calculated by reversing the method used to form the matrix. P.S. - The values of transform properties are given in

I'm trying to correct the animation duration and timeline of infinite flip, rotation, spin and disappearance of three images in pure CSS

被刻印的时光 ゝ 提交于 2020-01-24 12:54:31
问题 I tested with the following answers: Pure CSS rotate animation broken while in infinite loop Stop infinite CSS3 animation and smoothly revert to initial state CSS Image Fade Animation Only Runs First Time, but the animation duration and timeline (for example, from step by step, from start to end) did not work. The three images need to be in the same place at once. I wanted to use https://codepen.io/jay-bee-why/pen/Htejl, but unfortunately I do not want to use jQuery. I am CSS and JavaScript