Skip to content

Instantly share code, notes, and snippets.

View franciscomdelgado's full-sized avatar
🏠
Working from home

Francisco M. Delgado franciscomdelgado

🏠
Working from home
  • Los Angeles, CA
View GitHub Profile
@CodeMyUI
CodeMyUI / gradient-hover-effect.markdown
Created June 28, 2017 14:25
Gradient Hover Effect

Gradient Hover Effect

Made this button hover effect using CSS animations and gradients. Hope you like it!

A Pen by Chris Colvin on CodePen.

License.

@kyleclegg
kyleclegg / InvalidTextFields
Last active May 28, 2024 15:02
Marks invalid UITextFields red in iOS. If valid, restores original border.
#import <QuartzCore/QuartzCore.h>
// Form validation. You'll probably place this in your buttonClicked action
if ([textField.text isEqualToString:@""]) // checks if field is empty, add other form validation here
{
textField.layer.cornerRadius = 8.0f;
textField.layer.masksToBounds = YES;
textField.layer.borderColor = [[UIColor redColor] CGColor];
textField.layer.borderWidth = 1.0f;
}