Skip to content

Instantly share code, notes, and snippets.

.floatedButton {
appearance: none;
background: transparent;
border: none;
display: flex;
align-items: center;
color: #fff;
justify-content: start;
max-width: 0;
transition: all ease 2000ms;
@annelyse
annelyse / react
Last active September 20, 2022 15:50
// stateless functional component.
// For now, think of a stateless component as one that can receive data and render it, but does not manage or track changes to that data. (We'll cover the second way to create a React component in the next challenge.)
// name of component :requires your function name to begin with a capital letter.
const DemoComponent = function() {
return (
<div className='customClass' />
);
};
const Default = {
backdrop: true,
}
export class stickyScrollElement {
/**
* Constructs a new parallax instance.
*
export function activeFieldClass() {
const formEL = document.querySelectorAll('.gfield input, .gfield textarea, .gfield select');
if (formEL) {
[].forEach.call(formEL, function (el) {
//Add Class form control if needed
@annelyse
annelyse / css
Last active June 23, 2022 16:17
Ajout aussi ça dans le head <!--[if lte IE 11]><html <?php language_attributes(); ?> class="no-js lte-ie11"> <![endif]--> <!--[if gte IE 11]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->#
/*
|--------------------------------------------------------------------------
| NAVIGATEUR OBSOLETE
|--------------------------------------------------------------------------
*/
.hide_scroll{
overflow: hidden !important;
height: 100% !important;
}
.masonry-grid {
$gutter-masonry: 30px / 2;
$nbrColonnes : 2;
display: block;
width: auto; // ne pas mettre width 100%
margin-left: rfs-value(-$gutter-masonry);
margin-right: rfs-value(-$gutter-masonry);
&:after {
content: '';
//---------------------------//
// ===== Scroll to Top ====
// author: Annelyse Egloff
//---------------------------//
export function returnTop(elementID) {
let el = document.getElementById(elementID);
const scrollToTop = () => {
@annelyse
annelyse / info
Last active April 26, 2022 11:29
# Installer le plugin WP Mail SMTP
## Paramétrer avec "autre smtp"
### aller sur l'hébergeur du client, là où sont les mails <br>
Créer une compte mail spécialement <br>
Exemple : [email protected] <br>
Pour éviter que si ils changent de mot de passe ça ne fonctionne plus !
## Ensuite aller dans les parametres du plugin :
const swiper = new Swiper(".swiper-post", {
// Disable preloading of all images
slidesPerView: 1.2,
spaceBetween: 15,
preloadImages: false,
lazy: {
loadPrevNext: true,
},
centeredSlides: true,
loop: true,