Questions tagged [transform]

Coordinate and other transformations. You probably want a more specific tag like [css-transforms].

0
votes
0answers
27 views

Transform element based on scroll position without using scroll events (Css only if possible)

I currently have a full screen hero image slideshow on the homepage of a site. I have an javascript effect which gets the scroll position and divides it by 1.5 then sets the image transformY position ...
1
vote
1answer
11 views

Multiply tuple pairs

I need to make a function to multiply two strings and give an integer list I have to turn L="1 3 5 7" N="4 -1 2 0" to [4, -3, 10, 0] So far I have this but I am not sure how to define the ...
0
votes
2answers
24 views

Detect the end of rotation in CSS [duplicate]

I'm making some rotation for a wheel by using this transition: transform: rotate(180deg); transition: transform 10s cubic-bezier(.5,.1,.15,1); Now, how can I detect the send of the transition with ...
2
votes
0answers
21 views

Why does this css work in live preview but not once uploaded to a server?

This css seems to work fine in live preview, but when i upload it to the server the drop shadow and image scaling on hover do not work. also on the project pages in live preview there is a black ...
0
votes
1answer
24 views

Child ignores changes to Parent's transform position during runtime. How to fix?

I have spheres being instantiated as children of a GameObject. I want these spheres to follow the Position of the GameObject. The trouble is, these spheres stubbornly stay in the place they were ...
0
votes
1answer
34 views

How to change location of spawned instances without ruining instances' positions relative to each other?

Currently I have code that spawns a bunch of Sphere mesh instances into the shape of a Cube (by spawning one Sphere per a Cube mesh's vertex), like this: public CubeMesh CubeMesh; mesh = CubeMesh....
0
votes
0answers
18 views

Complex number for radius coding in circle

Based on T.J. Atherton and D.J. Kerbyson 1992 on their paper the coherent CHT it is possible de reduce the accumulator dimension from cubic to quadratic. This is achieved by coding the radii dimension ...
0
votes
0answers
22 views

How to transform categorical variables with its numeric representation?

I want to convert the hashtags column in the table below to its numerical representation so that I can explore things like the most popular hashtags and their correlation with other features, but I'm ...
0
votes
0answers
33 views

Flutter disappearing content from Card widget while rotating

I have a problem of disappearing content from a Card widget when it's being rotated with some added perspective. Can someone point me in the right direction as to the solution? EDIT: I'm starting to ...
0
votes
0answers
10 views

CSS parallax effect: Why does translateZ() move my element?

I'm trying to create a simple CSS parallax effect. As opposed to many tutorials out there I want it to affect the content of the parallax-div as well. It works well except that as soon as I apply ...
4
votes
1answer
72 views

CSS JQuery Rotate image inside container

I am trying to rotate an image inside a container. The container width must have a limit, and so should the height. I was able to accomplish it with the following code, but there is an issue with ...
0
votes
2answers
27 views

How to replace categorical variables with its numerical representations for further calculating their correlations?

I have a data-frame with information about different users (ID) with many duplicated categorical variables (photo and hash-tags) and its corresponding numbers of interactions (likes and comments). How ...
1
vote
0answers
19 views

Problem to align/rotate a Rigidbody between two VR Controllers (Or two points)

I need a nice soul to help :) I am trying to align a rigid body between two VR controllers. However, when I have a high slope (i move the farthest controller in an upper position), the object is ...
0
votes
0answers
21 views

Safari: mix-blend-mode luminosity not working correctly

I have a mix-blend-mode for one of my images that works perfectly on firefox and chrome, but not on safari. The overlay is on a CSS slider I have and I found transform messes up the mix-blend-mode ...
0
votes
0answers
30 views

R: Predict interpretable values of log-log-regressions

I ran a logistic regression (DV: purchase yes vs. no) and a linear regression (DV: log of how many items) on my dataset. For both models, I logarithmized all independent variables (log_days, ...
2
votes
1answer
60 views

Device orientation sensor to CSS transform

I've created the following widget (see demo here) to mimic the sensors tab on the chrome developer tab: My code listens to the orientation event of the device and tries to convert the values to fit ...
2
votes
2answers
22 views

Mapping all variables with mediator in one

I'm mapping variables in XSLT file but I have lots of variables to map. Is there any mediator to do this in WSO2?
0
votes
2answers
40 views

zoom and focus to x and y cordinates of an image

Is it possible to zoom to a point if the x and y coordinates are known? I have an image and a point in that image whose coordinates and coordinates are known.And these coordinates are dynamic. Means ...
0
votes
2answers
23 views

Cohorts based on first day of usage

I want to build cohorts based on the month of the first observation of a user in my app dataset. Let's say, January 2018 was the first month of my observation period. I've tried something like this (....
0
votes
0answers
22 views

Rotate text in a table (<th> tag) [duplicate]

I would like the headings of my table to appear vertically as I have a lot of information to include in the table. I can get them to rotate 90 degrees but the text doesn't stretch - it stays all ...
0
votes
1answer
18 views

Immediate UIButton rotation transform, with animated scale

I would like to animate the scale of a UIButton, and animate the scale again when completed, but have it rotate without animation. I've tried to put the rotation transform in an animation call with no ...
0
votes
1answer
17 views

UIButton animation ignores target selector in Swift

I've added this animation code to the end of a function that is called when the button is pushed, but while the animation is happening, it ignores the set target selector until the animation is ...
0
votes
0answers
21 views

how to zoom and focus to an image if the if the x and y coordinates are known with css

Am trying to add a new feature to my code. That is to change the focus of an image with zoom effect. I have my x and y coordinates of the image . For eg([xaxis] => 409.10584934476, [yaxis] => 199....
0
votes
1answer
20 views

Find Up-Vector for LookAt Matrix (2 rotations)

I'm trying to establish a lookAt matrix to look at the point {0,0,0} from an eye at {5,5,10}. I've successfully implemented the LookAt matrix for an eye at {5,0,10}, but the second angle (y direction) ...
0
votes
0answers
45 views

Manipulate pandas columns with datetime

Please see this SO post Manipulating pandas columns I shared this dataframe: +----------+------------+-------+-----+------+ | Location | Date | Event | Key | Time | +----------+------------+--...
0
votes
0answers
17 views

svg transform scale svg on ie11 is broken [duplicate]

I'm currently working with svg and I can't find a way to make the property transform="scale(x)" to work on IE11 Is it a non supported feature on ie11 ? Is there a workaround ? I can't find ...
0
votes
1answer
23 views

translate coordinates, then rotate coordinates in X and Y so Z' points at origin

I'd like to establish a matrix (either 4x4 or 3x3 to transform XYZ->X'Y'Z') that will translate my origin by {x,y,z} and then rotate the matrix so that the Z' axis points to the origin {X=0,Y=0,Z=0} ...
0
votes
1answer
76 views

Need a FFT for an near infinite set of data points

I need to perform a Fourier transform on a long stream of data. I made a DFT .c file that works fine, the downside is of course the speed. It is slow AF. I am looking for a way to perform the FFT on ...
0
votes
2answers
43 views

What is right way to transform SVG element (rotateX)

I tried to transform SVG element with perspective and discovered that it does not work, but the same transformations to HTML tags work correctly. Experiment on jsfiddle: https://jsfiddle.net/5ms7ubck/...
0
votes
0answers
26 views

How can I calculate the z transform of a difference equation in MATLAB?

Is there a way to compute the z transform of y[n] = x[n]+y[n-1] in MATLAB? I tried syms y(n) x(n) z; y(n)=x(n)+y(n-1); Zeq = ztrans(y(n),n,z) but this only gives me Zeq = y(-1) + ztrans(y(n), n, z)...
0
votes
1answer
18 views

How can I force rotated text to anti-alias correctly in Chrome on Windows?

When I attempt to rotate text for a label, I can either get non-anti-aliased text or blurry text, but not nicely anti-aliased text. This text looks bad on a "standard" 1920*1080 monitor, you might ...
0
votes
1answer
20 views

How to center-align content within an iFrame who's size is dependent on different mobile-screen sizes?

I am trying to display some content through an iframe. 1.The iframe window's height and width will be dependent on the height/width of a mobile screen and will thus vary based on the device screen ...
0
votes
0answers
25 views

How to (generally!) deal with out-of-range output pixel destinations

I'm working on a perspective transform application involving transforming 3D points to 2D camera pixels. It is a purely mathematical model, because I'm preparing to use it on hardware that I don't ...
0
votes
0answers
42 views

I am trying to simplify the following C# code but if I use a variable instead of a hard value for the transform it doesn't execute [duplicate]

Im using transform.translate to move my game object, the code works fine with a hard coded value (provided i make sure to add f to the end of the float) but when I give it a variable to take that same ...
0
votes
0answers
28 views

CSS/JS/ETC - Need to rotate actual element, not just transform

I have a web app (running in IE 11 unfortunately, but necessarily...) in which I display an image via a div w/ a background image. I need to be able to rotate the element, and not simply transform it....
0
votes
1answer
18 views

Rotate in jQuery else

I try to make navbar-toggler using jQuery but "else" don't work with me $("#__chn").click(function () { if($(".jax2").css("display","block")){ var r__o_t = 50; var n_r_ot = -50; var n = 0;...
2
votes
1answer
35 views

Mapping array into higher-dimension - Python

I've to map R^2 array X=[x1, x2] into R^3 array X'=[x1, x2, x1^2]. Is there any compact solution? ADDED: My starting array is a numpy array e.g. x = numpy.array([2, 3]). I want to end up with ...
1
vote
0answers
37 views

Assigning value to a list and transforming data in Python

I am new to Python and struggling with some basic transformations (yikes!) I want to write code that will open an excel workbook with IDs and Locations and run every line through a function that maps ...
0
votes
1answer
19 views

How to disable the click to advance on a pure css slider

I have mimic-ed a pure css slider with a 3d effect, where clicking does not advance the slider. When I alter it, the click does advance the slider. Any help making it so the click does not advance the ...
0
votes
1answer
34 views

Moving object to position of another object on button press

I am attempting to make a random spawn system, the randomising works however the objects never move to the position. I have broken it down to now just one of the objects moving to the spawn point when ...
0
votes
1answer
20 views

How to change the pixel dimensions of the cube while keeping the cube intact?

I am trying to change the cube dimensions to be 300x250px, however whenever I am doing that the cube faces start overlapping. How would I be able to change the translate values in order to accomplish ...
0
votes
0answers
14 views

How to center a fixed div while using a scaling animation [duplicate]

I'm trying to horizontally and vertically center a fixed popup. To do this I've used: top: 50%; left: 50%; transform: translate(-50%, -50%); ...but I'm trying to add a scaling animation that scales ...
0
votes
0answers
9 views

Why there is a distortion after transform?

Here I have a 3d lion, and I want to transform the lion face to forward. But after the transformation taking use of Rodriguez formula , the lion faced to forward, and it also turned to be a dog, or ...
1
vote
1answer
35 views

How to make a rotated image fill available space in Flutter?

I'm trying to display an image as a rounded diamond shape. I can get the rotations to work and if I use debugPaintSizeEnabled it shows the diamond shape, but the image won't fill that space. How can I ...
0
votes
0answers
17 views

Setting stacking order between multiple stacking contexts and their child elements

I'm having trouble figuring out how to set the stacking order of a child element whose parent element has its own stacking context (using transform: translate) such that the child interacts properly ...
0
votes
0answers
25 views

How to eval es6 code from NodeJS at runtime with Babel?

I'm trying to build a nodeJS tool to help me analyzing another AngularJS source code. The idea is to : read some of the angular project javascript files for each file, grab the content eval the ...
0
votes
2answers
24 views

Slide div into div, using transform

I'm working on a sliding form in HTML. Basically I want that only one of the two (f1|f2) is visible in the Container. But I don't know how to hide the other div from being visible on the Page. https:/...
0
votes
2answers
26 views

How transform all the variables of a data.table of one row to single values

I created DT putting the values in a table: a <- 2 b <- 20 c <- 0.3 DT <- data.table(a, b, c) let's assume that I have only the DT generated. How can from DT generate a, b, c (single ...
0
votes
0answers
22 views

Spreading dataframe based on unique value within column [duplicate]

I have a dataframe that is 2 columns and represents someone's loan transcript. It's just one long table with a lot of information, but each time "loantype" occurs in the name that means the ...
0
votes
1answer
24 views

Why the output of pywt wavelet transfor is a complex array?

I'm using the python package pywt of python to do continuous wavelet transform for some signals. As the length of the signals are different, the output coefficient 2d arrays have different number of ...