Update custom.js

Added speed attribute to increase/decrease the fade-in and fade-out speed