文章

顯示從 1月, 2026 起發佈的文章

AOS (Animate on Scroll) Libraries in 2025

  Best AOS (Animate on Scroll) Libraries in 2025 # animation # css # frontend # html Scroll animations can make your website more engaging, but which animate on scroll library should you use? Some are too heavy, others lack flexibility. After testing the top options, here’s my ranking of the best AOS libraries—and why  Trig.js  is the #1 choice. 🔍  Top AOS Libraries Compared Library Performance Ease of Use File Size Best For 1. Trig.js Ultra-fast (CSS-based) Easiest setup ~4KB Advanced Control 2. AOS.js Good Easy ~6KB Basic animations 3. ScrollTrigger (GSAP) High but heavy Complex 100KB+ Advanced control 4. Sal.js Fast Simple ~3KB AOS alternative 5. WOW.js OK Easy ~7KB Animate.css users 6. Lenis Smooth Moderate Medium Smooth scrolling 7. Locomotive Scroll Smooth Moderate Large Full-page scroll effects

basic HTTP auth protect drupal cms part

file       .htaccess   AuthType Basic AuthName "restricted area" AuthUserFile C:\wamp64\www\cms\web\.htpasswd require valid-user file .htpasswd generate by online generator

call drupal api with Apache HTTP auth (basic)

  <?php // API endpoint $apiUrl = 'http://localhost/cms/web/api/articles' ; // HTTP Basic Authentication credentials $username = 'xxxx' ; $password = 'yyyyyy' ; // Initialize cURL session $ch = curl_init (); // Set cURL options curl_setopt ($ch, CURLOPT_URL , $apiUrl); curl_setopt ($ch, CURLOPT_RETURNTRANSFER , true ); curl_setopt ($ch, CURLOPT_HTTPAUTH , CURLAUTH_BASIC ); curl_setopt ($ch, CURLOPT_USERPWD , " $username : $password " ); // Execute cURL request $response = curl_exec ($ch); // Check for cURL errors if ( curl_errno ($ch)) {     http_response_code ( 500 );     echo json_encode ([ 'error' => 'cURL Error: ' . curl_error ($ch)]);     curl_close ($ch);     exit ; } // Get HTTP status code $httpCode = curl_getinfo ($ch, CURLINFO_HTTP_CODE ); // Close cURL session curl_close ($ch); // Check HTTP response code if ($httpCode !== 200 ) {     http_response_code ($httpCode);     echo...