Can you please help me to design the codepen code
https://codepen.io/zeinab92/pen/JYKyBx
in this page login window comes first I need that plus icon comes first then as normal ...
HTML Code
- <header>
- <div id="darkBack"></div>
- <div id="popUp">
- <div id="close" class="close"><i class="fa fa-times"></i></div>
- <div id="new"><span>NEW!</span></div>
- <h2>I'm a notification popup that isn't too distracting or in your face. Scroll down or close me and I will go away. You'll still be able to open me later on don't worry.</h2>
- <br>
- <a href="#" target="_blank" class="button">Visit Page</a>
- </div>
- <div id="plus"><span>NEW<br> <i class="fa fa-plus"></i></span></div>
- </header>
- <div id="body"></div>
CSS Code
- $(document).scroll(function() {
- var scroll = $(this).scrollTop();
- if (scroll >= 150) {
- $("#popUp").css("margin-left", "-425px");
- $("#plus").css("margin-left", "0px");
- }
- });
- $("#plus").click(function() {
- $("#popUp").css("margin-left", "0px");
- $("#plus").css("margin-left", "-425px");
- });
- $("#close").click(function() {
- $("#popUp").css("margin-left", "-425px");
- $("#plus").css("margin-left", "0px");
- });
https://codepen.io/zeinab92/pen/JYKyBx