Now that's smart. Our latest iPhone models are built for Apple Intelligence, the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.1
Find just the right words. Writing Tools can proofread your text and rewrite different versions until the tone is just right, and summarize selected text with a simple tap. They’re available nearly everywhere you write, including third-party apps.
Express yourself visually. Use the keyboard to make a Genmoji to match any conversation. Want to create a rainbow cactus? No problem. Just provide a description to see a preview.
A new era for Siri. Awareness of your personal context enables Siri to help you in ways that are unique to you. Can’t remember when your mom’s flight is arriving? Siri can help find what you’re looking for, without compromising your privacy.
Designed to protect your privacy at every step. With Private Cloud Compute, Apple Intelligence can draw on larger, Apple‑designed server‑based models, running on Apple silicon, to handle more complex requests while protecting your privacy.
You probably know what you're doing, but if you're new to Webflow and need some assistance, I’ve put together an in-depth, step-by-step guide to help you get this modal popup working perfectly. Follow it to ensure everything runs smoothly, with no glitchy background movement when scrolling within the modal popup.
Step 1
First step is to copy the code below.
<script>
$('[scroll=enable]').click(function() {
unLockScroll();
});
$('[scroll=disable]').click(function() {
lockScroll();
});
let scrollPosition = [];
let marginB;
let marginR;
const $html = $('html');
const $body = $('body');
function lockScroll(){
setTimeout(function () {
let initWidth = $body.outerWidth();
let initHeight = $body.outerHeight();
scrollPosition = [
self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft,
self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
];
$html.css('overflow', 'hidden');
window.scrollTo(scrollPosition[0], scrollPosition[1]);
marginR = $body.outerWidth()-initWidth;
marginB = $body.outerHeight()-initHeight;
$body.css({'margin-right': marginR,'margin-bottom': marginB});
}, 10);
}
function unLockScroll(){
setTimeout(function () {
$html.css('overflow', 'initial');
window.scrollTo(scrollPosition[0], scrollPosition[1]);
$body.css({'margin-right': 0, 'margin-bottom': 0});
}, 10);
}
</script>
Step 2
Second step is to paste the code on the page your slider is located (for this project the slider is located on the home page, so the custom code is placed on this page under the home page settings).
To navigate to the page settings click the symbol shown below. This symbol can be found on the top left hand side of the Webflow Interface.
Step 3
Third step is to click the page settings cog symbol shown below.
Step 4
Fourth step is to scroll down to the custom code section and paste the custom code in the "Before </body> tag" section.
To Disable Scrolling (Lock the Page)
On elements that should lock the page and disable scrolling when clicked (e.g. the button to open the popup), add the following custom attribute in the element settings: scroll="disable"
To Enable Scrolling (Unlock the Page)
On elements that should unlock the page and enable scrolling when clicked (e.g. the exit icon/clickable background), add the following custom attribute the element settings: scroll="enable"
For each new modal popup you want to create, you'll need to add a new modal popup layer and link it to a corresponding interaction that triggers the modal to open. (The first three have already been set up for you.)
And that's everything.
If you found this useful and are using it in a project and you'd like to buy me a coffee, my donation link is below.
Thank you,
- Vaughan
The font Inter is the closest alternative to SF Pro Display, Apple’s official font. SF Pro Display is licensed exclusively to registered third-party developers for designing and developing applications for Apple’s platforms. If you’d like to use Inter for your project, you can download it for free from the Google Fonts website.
Uppercase Letters:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Lowercase Letters:
a b c d e f g h i j k l m n o p q r s t u v w x y z
Numbers:
0 1 2 3 4 5 6 7 8 9
Common Symbols:
! @ # $ % ^ & * ( ) - _ = + [ ] { } \ | ; : ' " , < . > / ? ~ `
Additional Symbols:
£ € ¥ ¢ ©
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat.
Curabitur at lacus ac velit ornare lobortis. Curabitur a felis in nunc fringilla tristique. Phasellus a est. Phasellus magna. In hac habitasse platea dictumst. Morbi ac felis. Nulla facilisi. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna. Aliquam erat volutpat. Cras mi pede, malesuada in, imperdiet et, commodo vulputate, justo. In blandit ultrices enim. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean nec eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Suspendisse sollicitudin velit sed leo. Ut pharetra augue nec augue. Nam elit magna, hendrerit sit amet, tincidunt ac, viverra sed, nulla. Donec porta diam eu massa. Quisque diam lorem, interdum vitae, dapibus ac, scelerisque vitae, pede.
Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam erat volutpat. Ut tempus purus at lorem. Vestibulum viverra, felis nec elementum aliquam, mauris quam bibendum dui, eu vulputate orci libero id urna. Aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.