Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
Different page transition per link selector with swup.js

I made a pretty cool page transition with swup.js but I want to use it only for specific links. I want another more basic transition, like the standard one for the rest of the links on my site. I'm trying two swup constants but it's not working. I'm not sure if it's even possible. Here's the js:

const options = {
    containers: ['.site-content'],
    animationSelector: '[class*="transition-"]'
};
const swup = new Swup(options);

const optionsB = {
    linkSelector: '#menu-item a',
    containers: ['.site-content'],
    animationSelector: '[class*="simpletrans-"]'
};
const swupB = new Swup(optionsB);
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!