I am installing a gallery that has a fixed amount of columns and each column will have a different amount of elements within them. The logic is that you rotate around the window width and height and are able to see the associated div of height and width. I have achieved the dynamic width of the element and successfully seen every column so div has successfully controlled - as you can see here in Bella (jquery is below). I do not understand that horizontally I am able to see each element successfully - but some vertical divs are cutting and it is not behaving in the same way as it happens horizontally if someone helps me So I will be very grateful!
$ (document) .ready (function () {var winW = $ (window). Width (), winH = $ (window) .ite (), winWHalf = winW / 2, WinHHalf = winH / 2, $ cont = $ ("content"), contW = $ cont.width (), contH = $ cont.height (), diffX = (WinW - contW) / 2, diffY = (winH - ContH) / 2; var LastX = 0, last Y = 0; var moves Communication = function (e) {var x = e.pageX, y = EPPI; final S = ((x) * ( Console_log (last x, last y); $ cont.css ("conversion", "translation 3d"); Contrast / ww); Last Y = ((wi) * (contH / winH) / 2) + (0 - the last X) + "px," + (0 - the last y) + "px, 0)"); $ (Document) .ready (function () {var winW = $ (window). Width (), win = $ (window) .heet (), winWHalf = winW / 2, winHHalf = winH / 2, $ cont = $ (". Content"), contW = $ cont.width (), contH = $ cont (height), diffX = (winW - contW) / 2, diffY = (winH - contH) / 2; var last x = 0, Last y = 0; var moveContent = function (e) {var x = e.pageX, Y = e.pageY; last X = ((x) * (conte / windw) / 2); Last Y = ((Y) Console.log (Last X, Last Y); $ Cont.css ("Conversion", "Translation 3D (" + (0 - Ultimate X) + "PX," + ( 0 - last y) + "px, 0)");};
sorry but for some reason Please see Bela.
You width $ (".content")
based on the code> and calculating the height
. Instead you should see the $ (window)
or $ (Document)
needs to be used for height
, you would like to use a larger value to ensure that you fill the screen.
No comments:
Post a Comment