PageSourceSearch

https://gsap.com/assets/js/3e1e944a.23614bbd.js

js gsap.com collected 2026-10-02 06:11:09 UTC 4,158 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgsap_docs=self.webpackChunkgsap_docs||[]).push([[24687],{8681:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>c,frontMatter:()=>r,metadata:()=>s,toc:()=>p});const s=JSON.parse('{"id":"Plugins/Flip/methods/static-makeAbsolute","title":"static-makeAbsolute","description":"Returns : Array","source":"@site/docs/Plugins/Flip/methods/makeAbsolute.mdx","sourceDirName":"Plugins/Flip/methods","slug":"/Plugins/Flip/static.makeAbsolute()","permalink":"/docs/v3/Plugins/Flip/static.makeAbsolute()","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"id":"static-makeAbsolute","slug":"/Plugins/Flip/static.makeAbsolute()","hide_title":true,"sidebar_label":"Flip.makeAbsolute()","sidebar_custom_props":{"summary":"<p>Sets all of the provided target elements to <code>position: absolute</code> while retaining their current positioning. </p>","title":"<span class=\\"dim\\">Flip</span>.makeAbsolute","propSummary":"( targets:String | Element | Array | NodeList | FlipState ) : Array","params":[{"name":"targets","data":": String | Element | Array | NodeList | FlipState","description":"<p>The targets to be given an absolute position while retaining their current position. Can be selector text, an Element, an Array of Elements, or a NodeList. </p>"}]}},"sidebar":"docs","previous":{"title":"Flip.killFlipsOf()","permalink":"/docs/v3/Plugins/Flip/static.killFlipsOf()"},"next":{"title":"Flip.to()","permalink":"/docs/v3/Plugins/Flip/static.to()"}}');var n=i(74848),o=i(28453);const r={id:"static-makeAbsolute",slug:"/Plugins/Flip/static.makeAbsolute()",hide_title:!0,sidebar_label:"Flip.makeAbsolute()",sidebar_custom_props:{summary:"<p>Sets all of the provided target elements to <code>position: absolute</code> while retaining their current positioning. </p>",title:'<span class="dim">Flip</span>.makeAbsolute',propSummary:"( targets:String | Element | Array | NodeList | FlipState ) : Array",params:[{name:"targets",data:": String | Element | Array | NodeList | FlipState",description:"<p>The targets to be given an absolute position while retaining their current position. Can be selector text, an Element, an Array of Elements, or a NodeList. </p>"}]}},a=void 0,l={},p=[{value:"Returns : Array",id:"returns--array",level:3},{value:"Details",id:"details",level:3}];function d(e){const t={a:"a",code:"code",h3:"h3",p:"p",...(0,o.R)(),...e.components},{PropDetails:i}=t;return i||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("PropDetails",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i,{items:r.sidebar_custom_props}),"\n",(0,n.jsx)(t.h3,{id:"returns--array",children:"Returns : Array"}),"\n",(0,n.jsx)(t.p,{children:"An Array of the Elements that were affected"}),"\n",(0,n.jsx)(t.h3,{id:"details",children:"Details"}),"\n",(0,n.jsxs)(t.p,{children:["Sets all of the provided target elements to ",(0,n.jsx)(t.code,{children:"position: absolute"})," while retaining their current positioning. This functionality is already built into the standard ",(0,n.jsx)(t.a,{href:"/docs/v3/Plugins/Flip/static.from()",children:"Flip.from()"})," and ",(0,n.jsx)(t.a,{href:"/docs/v3/Plugins/Flip/static.fit()",children:"Flip.fit()"})," using the ",(0,n.jsx)(t.code,{children:"absolute: true"})," special property, but this method is exposed in case you'd like to use it independently. You could literally make all the elements in the document position: absolute by running ",(0,n.jsx)(t.code,{children:'Flip.makeAbsolute("*")'})," (not that you'd ever need to do that)."]})]})}function c(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},28453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>a});var s=i(96540);const n={},o=s.createContext(n);function r(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.